Example #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
}
Example #2
0
func JoystickEventState(state int) int {
	_state := (C.int)(state)
	return (int)(C.SDL_JoystickEventState(_state))
}
Example #3
0
func JoystickEventState(flag int) int {
	return int(C.SDL_JoystickEventState(C.int(flag)))
}
Example #4
0
// JoystickEventState (https://wiki.libsdl.org/SDL_JoystickEventState)
func JoystickEventState(state int) int {
	return (int)(C.SDL_JoystickEventState(C.int(state)))
}
Example #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
}