コード例 #1
0
ファイル: sdl.go プロジェクト: gnanderson/Go-SDL
// Sets the state of modifier keys
func SetModState(modstate Mod) { C.SDL_SetModState(C.SDLMod(modstate)) }
コード例 #2
0
ファイル: sdl.go プロジェクト: kearsley/Go-SDL
// Sets the state of modifier keys
func SetModState(modstate Mod) {
	GlobalMutex.Lock()
	C.SDL_SetModState(C.SDLMod(modstate))
	GlobalMutex.Unlock()
}
コード例 #3
0
ファイル: keyboard.go プロジェクト: beoran/fungo
// Set the current key modifier state
// This does not change the keyboard state, only the key modifier flags.
func SetModState(state int) {
	C.SDL_SetModState(C.SDLMod(state))
}