Esempio n. 1
0
// Get the number of POV hats on a joystick
func (joystick *Joystick) NumHats() int {
	return int(C.SDL_JoystickNumHats(joystick.cJoystick))
}
Esempio n. 2
0
func (joystick *Joystick) NumHats() int {
	_joystick := (*C.SDL_Joystick)(joystick)
	return (int)(C.SDL_JoystickNumHats(_joystick))
}
Esempio n. 3
0
func (j *Joystick) NumHats() int {
	return int(C.SDL_JoystickNumHats((*C.SDL_Joystick)(unsafe.Pointer(j))))
}
Esempio n. 4
0
// Joystick (https://wiki.libsdl.org/SDL_JoystickNumHats)
func (joy *Joystick) NumHats() int {
	return (int)(C.SDL_JoystickNumHats(joy.cptr()))
}
Esempio n. 5
0
// Get the number of POV hats on a joystick
func JoystickNumHats(joystick *C.SDL_Joystick) int {
	return int(C.SDL_JoystickNumHats(joystick))
}