예제 #1
0
파일: joystick.go 프로젝트: beoran/algo
// 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)))
}