Beispiel #1
0
func GetKeyFromScancode(scancode int32) int32 {
	return int32(C.SDL_GetKeyFromScancode(C.SDL_Scancode(scancode)))
}
Beispiel #2
0
func (s Scancode) GetKey() Keycode {
	return Keycode(C.SDL_GetKeyFromScancode(s.c()))
}
Beispiel #3
0
func GetKeyFromScancode(scancode Scancode) Keycode {
	_scancode := (C.SDL_Scancode)(scancode)
	return (Keycode)(C.SDL_GetKeyFromScancode(_scancode))
}
Beispiel #4
0
func GetKeyFromScancode(code Scancode) Keycode {
	return (Keycode)(C.SDL_GetKeyFromScancode(code.c()))
}