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