예제 #1
0
파일: joystick.go 프로젝트: beoran/algo
// Returns the amount of buttons on the joystick self.
func (self *Joystick) GetNumButtons() int {
	return int(C.al_get_joystick_num_buttons(self.handle))
}
예제 #2
0
func (j *Joystick) GetNumButtons() int32 {
	return int32(C.al_get_joystick_num_buttons((*C.ALLEGRO_JOYSTICK)(unsafe.Pointer(j))))
}