Пример #1
0
// Get the number of buttons on a joystick
func (joystick *Joystick) NumButtons() int {
	return int(C.SDL_JoystickNumButtons(joystick.cJoystick))
}
Пример #2
0
func (joystick *Joystick) NumButtons() int {
	_joystick := (*C.SDL_Joystick)(joystick)
	return (int)(C.SDL_JoystickNumButtons(_joystick))
}
Пример #3
0
func (j *Joystick) NumButtons() int {
	return int(C.SDL_JoystickNumButtons((*C.SDL_Joystick)(unsafe.Pointer(j))))
}
Пример #4
0
// Joystick (https://wiki.libsdl.org/SDL_JoystickNumButtons)
func (joy *Joystick) NumButtons() int {
	return (int)(C.SDL_JoystickNumButtons(joy.cptr()))
}
Пример #5
0
// Get the number of buttons on a joystick
func JoystickNumButtons(joystick *C.SDL_Joystick) int {
	return int(C.SDL_JoystickNumButtons(joystick))
}