Example #1
0
// Get the number of general axis controls on a joystick
func (joystick *Joystick) NumAxes() int {
	return int(C.SDL_JoystickNumAxes(joystick.cJoystick))
}
Example #2
0
func (joystick *Joystick) NumAxes() int {
	_joystick := (*C.SDL_Joystick)(joystick)
	return (int)(C.SDL_JoystickNumAxes(_joystick))
}
Example #3
0
func (j *Joystick) NumAxes() int {
	return int(C.SDL_JoystickNumAxes((*C.SDL_Joystick)(unsafe.Pointer(j))))
}
Example #4
0
// Joystick (https://wiki.libsdl.org/SDL_JoystickNumAxes)
func (joy *Joystick) NumAxes() int {
	return (int)(C.SDL_JoystickNumAxes(joy.cptr()))
}
Example #5
0
// Get the number of general axis controls on a joystick
func JoystickNumAxes(joystick *C.SDL_Joystick) int {
	return int(C.SDL_JoystickNumAxes(joystick))
}