Example #1
0
// GetScancodeFromKey translates a key to scancode.
func GetScancodeFromKey(key Key) Scancode {
	return Scancode(sdl.GetScancodeFromKey(sdl.Keycode(key)))
}
Example #2
0
File: keys.go Project: eandre/drip
func (k Key) Name() string {
	return sdl.GetKeyName(sdl.Keycode(k))
}