Exemplo n.º 1
0
// Get the number of trackballs on a Joystick trackballs have only
// relative motion events associated with them and their state cannot
// be polled.
func (joystick *Joystick) NumBalls() int {
	return int(C.SDL_JoystickNumBalls(joystick.cJoystick))
}
Exemplo n.º 2
0
func (joystick *Joystick) NumBalls() int {
	_joystick := (*C.SDL_Joystick)(joystick)
	return (int)(C.SDL_JoystickNumBalls(_joystick))
}
Exemplo n.º 3
0
func (j *Joystick) NumBalls() int {
	return int(C.SDL_JoystickNumBalls((*C.SDL_Joystick)(unsafe.Pointer(j))))
}
Exemplo n.º 4
0
// Joystick (https://wiki.libsdl.org/SDL_JoystickNumBalls)
func (joy *Joystick) NumBalls() int {
	return (int)(C.SDL_JoystickNumBalls(joy.cptr()))
}
Exemplo n.º 5
0
// Get the number of trackballs on a joystick
// Joystick trackballs have only relative motion events associated
// with them and their state cannot be polled.
func JoystickNumBalls(joystick *C.SDL_Joystick) int {
	return int(C.SDL_JoystickNumBalls(joystick))
}