Ejemplo n.º 1
0
func GetKeyFromName(name string) int32 {
	cname := C.CString(name)
	key := C.SDL_GetKeyFromName(cname)
	C.free(unsafe.Pointer(cname))
	return int32(key)
}
Ejemplo n.º 2
0
func GetKeyFromName(name string) Keycode {
	cname := C.CString(name)
	defer C.free(unsafe.Pointer(cname))

	return Keycode(C.SDL_GetKeyFromName(cname))
}
Ejemplo n.º 3
0
func GetKeyFromName(name string) Keycode {
	_name := (C.CString)(name)
	return (Keycode)(C.SDL_GetKeyFromName(_name))
}
Ejemplo n.º 4
0
func GetKeyFromName(name string) Keycode {
	_name := C.CString(name)
	defer C.free(unsafe.Pointer(_name))
	return (Keycode)(C.SDL_GetKeyFromName(_name))
}