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