示例#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())
}