作者:kearsle
项目:Go-SD
// Gets the name of an SDL virtual keysym
func GetKeyName(key Key) string {
GlobalMutex.Lock()
name := C.GoString(C.SDL_GetKeyName(C.SDLKey(key)))
GlobalMutex.Unlock()
return name
}
作者:gnanderso
项目:Go-SD
// Gets the name of an SDL virtual keysym
func GetKeyName(key Key) string { return C.GoString(C.SDL_GetKeyName(C.SDLKey(key))) }
作者:kri
项目:Go-SDL
// 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
}
作者:kerker
项目:gtg15-dem
func GetKeyName(key Keycode) string {
_key := (C.SDL_Keycode)(key)
return (C.GoString)(C.SDL_GetKeyName(_key))
}
作者:willemvd
项目:sd
func (k Keycode) GetName() string {
return C.GoString(C.SDL_GetKeyName(k.c()))
}
作者:JalfRes
项目:go-sdl
func GetKeyName(code Keycode) string {
return (C.GoString)(C.SDL_GetKeyName(code.c()))
}