3 #ifndef _ARDUINOUNIVERSALINPUTS_IJOYSTICK_H
4 #define _ARDUINOUNIVERSALINPUTS_IJOYSTICK_H
inputanalog_t getCentreDeadband() const
Gets the deadband width at the centre point.
Definition: IJoystick.h:82
inputtype_t type() const
Retrieves the type of this device.
Definition: IJoystick.h:22
inputanalog_t getRawValue() const
Gets last read raw value.
Definition: IJoystick.h:33
bool poll()
Polls this input device for change.
Definition: IJoystick.cpp:23
inputanalog_t getValue() const
Gets the transformed value.
Definition: IJoystick.cpp:70
IJoystick(inputid_t id)
Creates a new joystick.
Definition: IJoystick.cpp:11
inputanalog_t getLowDeadband() const
Gets the deadband width at the low end point.
Definition: IJoystick.h:76
bool setThreshold(inputanalog_t threshold)
Sets the minimum change in raw value that will fire an event.
Definition: IJoystick.cpp:169
void setTransformation(IValueTransform *transform)
Sets the transformation to use between the centred value and outout value.
Definition: IJoystick.cpp:85
bool setDeadbands(inputanalog_t low, inputanalog_t centre, inputanalog_t high)
Sets the low, centre and high deadband widths.
Definition: IJoystick.cpp:137
inputanalog_t getLowPoint() const
Gets the low end point raw value.
Definition: IJoystick.h:58
bool setPoints(inputanalog_t low, inputanalog_t centre, inputanalog_t high)
Sets the low, centre and high points.
Definition: IJoystick.cpp:100
inputanalog_t getThreshold() const
Returns the threshold value.
Definition: IJoystick.h:46
inputanalog_t getHighPoint() const
Gets the high end point raw value.
Definition: IJoystick.h:70
Represents a joystick or potentiometer.
Definition: IJoystick.h:13
inputanalog_t getCentredValue() const
Gets the value centered at zero at the centre point and clamped if within the deadbands.
Definition: IJoystick.cpp:43
inputanalog_t getCentrePoint() const
Gets the centre point raw value.
Definition: IJoystick.h:64
inputanalog_t getHighDeadband() const
Gets the deadband width at the high end point.
Definition: IJoystick.h:88
virtual inputanalog_t getPhysicalValue() const =0
Gets the raw value form the joystick.