예제 #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))))
}