44 virtual bool ISNewText(
const char *dev,
const char *name,
char *texts[],
char *names[],
int n)
override;
45 virtual bool ISNewNumber(
const char *dev,
const char *name,
double values[],
char *names[],
int n)
override;
47 static void joystickHelper(
int joystick_n,
double mag,
double angle);
53 virtual bool Connect()
override;
83 std::unique_ptr<JoyStickDriver>
driver;
Class to provide extended functionality for devices in addition to the functionality provided by INDI...
The JoyStickDriver class provides basic functionality to read events from supported game pads under L...
The JoyStick class provides an INDI driver that displays event data from game pads....
virtual bool initProperties() override
Initilize properties initial state and value. The child class must implement this function.
ISwitchVectorProperty ButtonSP
static void buttonHelper(int button_n, int value)
virtual bool Disconnect() override
Disconnect from device.
INumberVectorProperty AxisNP
std::unique_ptr< JoyStickDriver > driver
static void joystickHelper(int joystick_n, double mag, double angle)
bool saveConfigItems(FILE *fp) override
saveConfigItems Save specific properties in the provide config file handler. Child class usually over...
virtual bool ISNewNumber(const char *dev, const char *name, double values[], char *names[], int n) override
Process the client newNumber command.
virtual const char * getDefaultName() override
ITextVectorProperty PortTP
virtual void ISGetProperties(const char *dev) override
define the driver's properties to the client. Usually, only a minimum set of properties are defined t...
static void axisHelper(int axis_n, int value)
virtual bool updateProperties() override
updateProperties is called whenever there is a change in the CONNECTION status of the driver....
virtual bool ISSnoopDevice(XMLEle *root) override
Process a snoop event from INDI server. This function is called when a snooped property is updated in...
void joystickEvent(int joystick_n, double mag, double angle)
INumberVectorProperty DeadZoneNP
virtual bool ISNewText(const char *dev, const char *name, char *texts[], char *names[], int n) override
Process the client newSwitch command.
virtual bool Connect() override
Connect to the device. INDI::DefaultDevice implementation connects to appropriate connection interfac...
INumberVectorProperty * JoyStickNP
void axisEvent(int axis_n, int value)
ITextVectorProperty JoystickInfoTP
void buttonEvent(int button_n, int value)
Number vector property descriptor.
Switch vector property descriptor.
Text vector property descriptor.