Esempio n. 1
0
// Gets the state of modifier keys
func GetModState() Mod {
	GlobalMutex.Lock()
	state := Mod(C.SDL_GetModState())
	GlobalMutex.Unlock()
	return state
}
Esempio n. 2
0
// Gets the state of modifier keys
func GetModState() Mod { return Mod(C.SDL_GetModState()) }
Esempio n. 3
0
// Get the current key modifier state
func GetModState() int {
	return int(C.SDL_GetModState())
}
Esempio n. 4
0
// Gets the state of modifier keys
func GetModState() int32 {
	state := int32(C.SDL_GetModState())
	return state
}
Esempio n. 5
0
func GetModState() Keymod {
	return Keymod(C.SDL_GetModState())
}