Esempio n. 1
0
func (j *Joystick) IsActive() bool {
	var b bool

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

	return b
}
Esempio n. 2
0
// 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))
}
Esempio n. 3
0
func (j *Joystick) GetActive() bool {
	return bool(C.al_get_joystick_active((*C.ALLEGRO_JOYSTICK)(unsafe.Pointer(j))))
}