예제 #1
0
파일: sdl.go 프로젝트: kearsley/Go-SDL
// Gets the state of modifier keys
func GetModState() Mod {
	GlobalMutex.Lock()
	state := Mod(C.SDL_GetModState())
	GlobalMutex.Unlock()
	return state
}
예제 #2
0
파일: sdl.go 프로젝트: gnanderson/Go-SDL
// Gets the state of modifier keys
func GetModState() Mod { return Mod(C.SDL_GetModState()) }
예제 #3
0
파일: keyboard.go 프로젝트: beoran/fungo
// Get the current key modifier state
func GetModState() int {
	return int(C.SDL_GetModState())
}
예제 #4
0
파일: input.go 프로젝트: krig/Go-SDL2
// Gets the state of modifier keys
func GetModState() int32 {
	state := int32(C.SDL_GetModState())
	return state
}
예제 #5
0
파일: keyboard.go 프로젝트: willemvds/sdl
func GetModState() Keymod {
	return Keymod(C.SDL_GetModState())
}