// Gets the name of an SDL virtual keysym func GetKeyName(key int32) string { name := C.GoString(C.SDL_GetKeyName(C.SDL_Keycode(key))) return name }
func GetScancodeFromKey(key int32) int32 { return int32(C.SDL_GetScancodeFromKey(C.SDL_Keycode(key))) }
// Gets the name of an SDL virtual keysym func GetKeyName(key Key) string { GlobalMutex.Lock() name := C.GoString(C.SDL_GetKeyName(C.SDL_Keycode(key))) GlobalMutex.Unlock() return name }
func (code Keycode) c() C.SDL_Keycode { return C.SDL_Keycode(code) }
func (k Keycode) c() C.SDL_Keycode { return C.SDL_Keycode(k) }