Ejemplo n.º 1
0
// Close a joystick previously opened with SDL_JoystickOpen()
func (joystick *Joystick) Close() {
	GlobalMutex.Lock()
	C.SDL_JoystickClose(joystick.cJoystick)
	GlobalMutex.Unlock()
}
Ejemplo n.º 2
0
func (joystick *Joystick) Close() {
	_joystick := (*C.SDL_Joystick)(joystick)
	C.SDL_JoystickClose(_joystick)
}
Ejemplo n.º 3
0
// Joystick (https://wiki.libsdl.org/SDL_JoystickClose)
func (joy *Joystick) Close() {
	C.SDL_JoystickClose(joy.cptr())
}
Ejemplo n.º 4
0
func (j *Joystick) Close() error {
	C.SDL_JoystickClose((*C.SDL_Joystick)(unsafe.Pointer(j)))

	return nil
}
Ejemplo n.º 5
0
// Close a joystick previously opened with SDL_JoystickOpen()
func (joystick *Joystick) Close() {
	C.SDL_JoystickClose(joystick.cJoystick)
}
Ejemplo n.º 6
0
// Close a joystick previously opened with JoystickOpen()
func JoystickClose(joystick *C.SDL_Joystick) {
	C.SDL_JoystickClose(joystick)
}