示例#1
0
func (j *Joystick) IsActive() bool {
	var b bool

	b = bool(C.al_get_joystick_active((*C.ALLEGRO_JOYSTICK)(j)))

	return b
}
示例#2
0
文件: joystick.go 项目: beoran/algo
// Returns true if the joystick self is active, false if not.
func (self *Joystick) IsActive() bool {
	return bool(C.al_get_joystick_active(self.handle))
}
示例#3
0
func (j *Joystick) GetActive() bool {
	return bool(C.al_get_joystick_active((*C.ALLEGRO_JOYSTICK)(unsafe.Pointer(j))))
}