示例#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))))
}