Esempio n. 1
0
// Returns the amount of buttons on the joystick self.
func (self *Joystick) GetNumButtons() int {
	return int(C.al_get_joystick_num_buttons(self.handle))
}
Esempio n. 2
0
func (j *Joystick) GetNumButtons() int32 {
	return int32(C.al_get_joystick_num_buttons((*C.ALLEGRO_JOYSTICK)(unsafe.Pointer(j))))
}