示例#1
0
文件: sdl.go 项目: kearsley/Go-SDL
// 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
}
示例#2
0
文件: sdl.go 项目: gnanderson/Go-SDL
// Gets the name of an SDL virtual keysym
func GetKeyName(key Key) string { return C.GoString(C.SDL_GetKeyName(C.SDLKey(key))) }