コード例 #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())
}