Esempio n. 1
0
// 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
}
Esempio n. 2
0
// Gets the name of an SDL virtual keysym
func GetKeyName(key Key) string { return C.GoString(C.SDL_GetKeyName(C.SDLKey(key))) }
Esempio n. 3
0
// 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
}
Esempio n. 4
0
func GetKeyName(key Keycode) string {
	_key := (C.SDL_Keycode)(key)
	return (C.GoString)(C.SDL_GetKeyName(_key))
}
Esempio n. 5
0
func (k Keycode) GetName() string {
	return C.GoString(C.SDL_GetKeyName(k.c()))
}
Esempio n. 6
0
func GetKeyName(code Keycode) string {
	return (C.GoString)(C.SDL_GetKeyName(code.c()))
}