Пример #1
0
// Returns the amount of axes for the stick on the joystick self.
func (self *Joystick) GetNumAxes(stick int) int {
	return int(C.al_get_joystick_num_axes(self.handle, C.int(stick)))
}
Пример #2
0
func (j *Joystick) GetNumAxes(stick int32) int32 {
	return int32(C.al_get_joystick_num_axes((*C.ALLEGRO_JOYSTICK)(unsafe.Pointer(j)), C.int(stick)))
}