コード例 #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
ファイル: joystick.go プロジェクト: b1naryth1ef/allegro
func (j *Joystick) GetNumButtons() int32 {
	return int32(C.al_get_joystick_num_buttons((*C.ALLEGRO_JOYSTICK)(unsafe.Pointer(j))))
}