Exemplo n.º 1
0
func GetScancodeFromKey(key int32) int32 {
	return int32(C.SDL_GetScancodeFromKey(C.SDL_Keycode(key)))
}
Exemplo n.º 2
0
func (k Keycode) GetScancode() Scancode {
	return Scancode(C.SDL_GetScancodeFromKey(k.c()))
}
Exemplo n.º 3
0
func GetScancodeFromKey(key Keycode) Scancode {
	_key := (C.SDL_Keycode)(key)
	return (Scancode)(C.SDL_GetScancodeFromKey(_key))
}
Exemplo n.º 4
0
func GetScancodeFromKey(code Keycode) Scancode {
	return (Scancode)(C.SDL_GetScancodeFromKey(code.c()))
}