Ejemplo n.º 1
0
// Enable/disable joystick event polling. If joystick events are
// disabled, you must call SDL_JoystickUpdate() yourself and check the
// state of the joystick when you want joystick information. The state
// can be one of SDL_QUERY, SDL_ENABLE or SDL_IGNORE.
func JoystickEventState(state int) int {
	GlobalMutex.Lock()
	result := int(C.SDL_JoystickEventState(C.int(state)))
	GlobalMutex.Unlock()
	return result
}
Ejemplo n.º 2
0
func JoystickEventState(state int) int {
	_state := (C.int)(state)
	return (int)(C.SDL_JoystickEventState(_state))
}
Ejemplo n.º 3
0
func JoystickEventState(flag int) int {
	return int(C.SDL_JoystickEventState(C.int(flag)))
}
Ejemplo n.º 4
0
// JoystickEventState (https://wiki.libsdl.org/SDL_JoystickEventState)
func JoystickEventState(state int) int {
	return (int)(C.SDL_JoystickEventState(C.int(state)))
}
Ejemplo n.º 5
0
// Enable/disable joystick event polling. If joystick events are
// disabled, you must call SDL_JoystickUpdate() yourself and check the
// state of the joystick when you want joystick information. The state
// can be one of SDL_QUERY, SDL_ENABLE or SDL_IGNORE.
func JoystickEventState(state int) int {
	result := int(C.SDL_JoystickEventState(C.int(state)))
	return result
}