Exemple #1
0
// GetScancodeFromKey translates a key to scancode.
func GetScancodeFromKey(key Key) Scancode {
	return Scancode(sdl.GetScancodeFromKey(sdl.Keycode(key)))
}
Exemple #2
0
func (k Key) Name() string {
	return sdl.GetKeyName(sdl.Keycode(k))
}