// Close a joystick previously opened with SDL_JoystickOpen() func (joystick *Joystick) Close() { GlobalMutex.Lock() C.SDL_JoystickClose(joystick.cJoystick) GlobalMutex.Unlock() }
func (joystick *Joystick) Close() { _joystick := (*C.SDL_Joystick)(joystick) C.SDL_JoystickClose(_joystick) }
// Joystick (https://wiki.libsdl.org/SDL_JoystickClose) func (joy *Joystick) Close() { C.SDL_JoystickClose(joy.cptr()) }
func (j *Joystick) Close() error { C.SDL_JoystickClose((*C.SDL_Joystick)(unsafe.Pointer(j))) return nil }
// Close a joystick previously opened with SDL_JoystickOpen() func (joystick *Joystick) Close() { C.SDL_JoystickClose(joystick.cJoystick) }
// Close a joystick previously opened with JoystickOpen() func JoystickClose(joystick *C.SDL_Joystick) { C.SDL_JoystickClose(joystick) }