|
| JoyAccelerometerSensor (double rate, int originset, SetJoystick *parent_set, QObject *parent) |
|
virtual | ~JoyAccelerometerSensor () |
|
virtual float | getXCoordinate () const override |
| Get the value for the corresponding X axis. More...
|
|
virtual float | getYCoordinate () const override |
| Get the value for the corresponding Y axis. More...
|
|
virtual float | getZCoordinate () const override |
| Get the value for the corresponding Z axis. More...
|
|
virtual QString | sensorTypeName () const override |
| Get the translated sensor type name. More...
|
|
virtual void | getCalibration (double *offsetX, double *offsetY, double *offsetZ) const override |
| Reads the calibration values of the sensor. More...
|
|
virtual void | setCalibration (double offsetX, double offsetY, double offsetZ) override |
| Sets the sensor calibration values and sets the calibration flag. More...
|
|
| JoySensor (JoySensorType type, int originset, SetJoystick *parent_set, QObject *parent) |
|
virtual | ~JoySensor () |
|
void | joyEvent (float *values, bool ignoresets=false) |
| Main sensor mapping function. When activated, it generates a "moved" QT event which updates various parts of the UI. Furthermore, it controls the sensor delay timer and calculates the current sensor direction and generates "active" and "released" QT events which enable/disable button highlights in the GUI. Finally, it calls createDeskEvent if the active/released button state has changed. More...
|
|
void | queuePendingEvent (float *values, bool ignoresets=false) |
| Queues next movement event from InputDaemon. More...
|
|
void | activatePendingEvent () |
| Activates previously queued movement event This is called by InputDevice. More...
|
|
bool | hasPendingEvent () const |
| Checks if an event is queued. More...
|
|
void | clearPendingEvent () |
| Clears a previously queued event. More...
|
|
void | copyAssignments (JoySensor *dest_sensor) |
| Copy slots from all sensor buttons and properties from a sensor onto another. More...
|
|
bool | hasSlotsAssigned () const |
| Check if any direction is mapped to a keyboard or mouse event. More...
|
|
QString | getPartialName (bool forceFullFormat=false, bool displayNames=false) const |
| Get the name of this sensor. More...
|
|
QString | getSensorName () const |
| Returns the sensor name. More...
|
|
JoySensorType | getType () const |
| Returns the sensor type. More...
|
|
JoySensorDirection | getCurrentDirection () const |
| Returns the current sensor direction. More...
|
|
double | getDeadZone () const |
| Get the assigned dead zone value. More...
|
|
double | getDiagonalRange () const |
| Get the assigned diagonal range value. More...
|
|
double | getMaxZone () const |
| Get the assigned max zone value. More...
|
|
unsigned int | getSensorDelay () const |
| Get the assigned input delay. More...
|
|
bool | inDeadZone (float *values) const |
| Checks if the sensor vector is currently in the dead zone. More...
|
|
double | getDistanceFromDeadZone () const |
| Get current radial distance of the sensor past the assigned dead zone. More...
|
|
double | getDistanceFromDeadZone (double x, double y, double z) const |
| Get radial distance of the sensor past the assigned dead zone based on the passed X, Y and Z axes values associated with the sensor. More...
|
|
double | calculateXDistanceFromDeadZone () const |
| Get current X distance of the sensor past the assigned dead zone. More...
|
|
double | calculateXDistanceFromDeadZone (double x, double y, double z) const |
| Get current X distance of the sensor past the assigned dead zone based on the passed X, Y and Z axes values associated with the sensor. The algorithm checks if an axis parallel line through the current sensor position intersects with the dead zone sphere and subtracts the line segment within the sphere from the distance. The resulting value is not normalized because there is no practical maximum value for a sensor as you can always move it a bit faster. More...
|
|
double | calculateYDistanceFromDeadZone () const |
| Get current Y distance of the sensor past the assigned dead zone. More...
|
|
double | calculateYDistanceFromDeadZone (double x, double y, double z) const |
| Get current Y distance of the sensor past the assigned dead zone based on the passed X, Y and Z axes values associated with the sensor. The algorithm checks if an axis parallel line through the current sensor position intersects with the dead zone sphere and subtracts the line segment within the sphere from the distance. The resulting value is not normalized because there is no practical maximum value for a sensor as you can always move it a bit faster. More...
|
|
double | calculateZDistanceFromDeadZone () const |
| Get current Z distance of the sensor past the assigned dead zone. More...
|
|
double | calculateZDistanceFromDeadZone (double x, double y, double z) const |
| Get current Z distance of the sensor past the assigned dead zone based on the passed X, Y and Z axes values associated with the sensor. The algorithm checks if an axis parallel line through the current sensor position intersects with the dead zone sphere and subtracts the line segment within the sphere from the distance. The resulting value is not normalized because there is no practical maximum value for a sensor as you can always move it a bit faster. More...
|
|
double | calculateDistance () const |
| Get the vector length of the sensor. More...
|
|
double | calculateDistance (double x, double y, double z) const |
| Get the vector length of the sensor based on the passed X, Y and Z axes values associated with the sensor. More...
|
|
double | calculatePitch () const |
| Calculate the pitch angle (in degrees) corresponding to the current position of controller. More...
|
|
double | calculatePitch (double x, double y, double z) const |
| Calculate the pitch angle (in degrees) corresponding to the current passed X, Y and Z axes values associated with the sensor. position of controller. See https://www.nxp.com/files-static/sensors/doc/app_note/AN3461.pdf for a description of the used algorithm. More...
|
|
double | calculateRoll () const |
| Calculate the roll angle (in degrees) corresponding to the current position of controller. More...
|
|
double | calculateRoll (double x, double y, double z) const |
| Calculate the roll angle (in degrees) corresponding to the current passed X, Y and Z axes values associated with the sensor. position of controller. See https://www.nxp.com/files-static/sensors/doc/app_note/AN3461.pdf for a description of the used algorithm. More...
|
|
double | calculateDirectionalDistance (JoySensorDirection direction) const |
| Used to calculate the distance value that should be used by the JoyButton in the given direction. More...
|
|
bool | isCalibrated () const |
| Check if the sensor is calibrated. More...
|
|
void | resetCalibration () |
| Resets the calibration of the sensor back to uncalibrated state. More...
|
|
QHash< JoySensorDirection, JoySensorButton * > * | getButtons () |
| Returns a QHash which maps the SensorDirection to the corresponding JoySensorButton. More...
|
|
JoySensorButton * | getDirectionButton (JoySensorDirection direction) |
| Get a pointer to the sensor direction button for the desired direction. More...
|
|
bool | isDefault () const |
| Checks if all sensor settings and button mappings are the their default values. This is used during XML serialization to skip unnecessary objects. More...
|
|
void | readConfig (QXmlStreamReader *xml) |
| Take a XML stream and set the sensor and direction button properties according to the values contained within the stream. More...
|
|
void | writeConfig (QXmlStreamWriter *xml) const |
| Write the status of the properties of a sensor and direction buttons to an XML stream. More...
|
|
SetJoystick * | getParentSet () const |
| Get pointer to the set that a sensor belongs to. More...
|
|
Represents an accelerometer sensor.