func GetKeyFromName(name string) int32 { cname := C.CString(name) key := C.SDL_GetKeyFromName(cname) C.free(unsafe.Pointer(cname)) return int32(key) }
func GetKeyFromName(name string) Keycode { cname := C.CString(name) defer C.free(unsafe.Pointer(cname)) return Keycode(C.SDL_GetKeyFromName(cname)) }
func GetKeyFromName(name string) Keycode { _name := (C.CString)(name) return (Keycode)(C.SDL_GetKeyFromName(_name)) }
func GetKeyFromName(name string) Keycode { _name := C.CString(name) defer C.free(unsafe.Pointer(_name)) return (Keycode)(C.SDL_GetKeyFromName(_name)) }