|
| | JoyControlStick (JoyAxis *axisX, JoyAxis *axisY, int index, int originset, QObject *parent) |
| |
| | ~JoyControlStick () |
| |
| void | joyEvent (bool ignoresets=false) |
| | Take the input value for the two axes that make up a stick and activate the proper event based on the current values.
|
| |
| void | setIndex (int index) |
| |
| void | replaceXAxis (JoyAxis *axis) |
| |
| void | replaceYAxis (JoyAxis *axis) |
| |
| void | replaceAxes (JoyAxis *axisX, JoyAxis *axisY) |
| |
| void | releaseButtonEvents () |
| |
| void | copyAssignments (JoyControlStick *destStick) |
| | Copy slots from all stick buttons and properties from a stick onto another.
|
| |
| void | queueJoyEvent (bool ignoresets) |
| |
| void | activatePendingEvent () |
| |
| void | clearPendingEvent () |
| |
| bool | inDeadZone () |
| | Check the current stick position to see if it lies in the assigned dead zone.
|
| |
| bool | hasSlotsAssigned () |
| | Check all stick buttons and see if any have slots assigned.
|
| |
| bool | isRelativeSpring () |
| |
| bool | hasPendingEvent () |
| |
| bool | isCalibrated () const |
| | Check if the stick is calibrated.
|
| |
| void | resetCalibration () |
| | Resets the calibration of both stick axes back to uncalibrated state.
|
| |
| void | getCalibration (double *offsetX, double *gainX, double *offsetY, double *gainY) const |
| | Reads the calibration values of both stick axes.
|
| |
| void | setCalibration (double offsetX, double gainX, double offsetY, double gainY) |
| | Sets the axis calibration values and sets the calibration flag. Calibrated value is calculated by the formula "a+b*x".
|
| |
| int | getDeadZone () |
| | Get the assigned dead zone value.
|
| |
| int | getDiagonalRange () |
| | Get the assigned diagonal range value.
|
| |
| int | getIndex () |
| |
| int | getRealJoyIndex () |
| |
| int | getMaxZone () |
| |
| int | getModifierZone () const |
| | Returns the modifier zone of the stick.
|
| |
| bool | getModifierZoneInverted () const |
| | Checks if the modifier zone of this stick is inverted.
|
| |
| int | getCurrentlyAssignedSet () |
| |
| int | getXCoordinate () |
| | Get the value for the corresponding X axis.
|
| |
| int | getYCoordinate () |
| | Get the value for the corresponding Y axis.
|
| |
| int | getCircleXCoordinate () |
| |
| int | getCircleYCoordinate () |
| |
| int | getStickDelay () |
| |
| double | getDistanceFromDeadZone () |
| | Get current radial distance of the stick position past the assigned dead zone.
|
| |
| double | getDistanceFromDeadZone (int axisXValue, int axisYValue) |
| | Get radial distance of the stick position past the assigned dead zone based on the passed X and Y axes values associated with the stick.
|
| |
| double | getAbsoluteRawDistance () |
| | Get the raw radial distance of the stick. Values will be between 0 - 32,767.
|
| |
| double | getAbsoluteRawDistance (int axisXValue, int axisYValue) |
| |
| double | getNormalizedAbsoluteDistance () |
| |
| double | calculateBearing () |
| | Calculate the bearing (in degrees) corresponding to the current position of the X and Y axes of a stick.
|
| |
| double | calculateBearing (int axisXValue, int axisYValue) |
| | Calculate the bearing (in degrees) corresponding to the passed X and Y axes values associated with the stick.
|
| |
| double | calculateMouseDirectionalDistance (JoyControlStickButton *button) |
| | Used to calculate the distance value that should be used for mouse movement.
|
| |
| double | calculateDirectionalDistance () |
| | Used to calculate the distance value that should be used for keyboard events and distance slots.
|
| |
| double | calculateLastDirectionalDistance () |
| |
| double | calculateLastMouseDirectionalDistance (JoyControlStickButton *button) |
| |
| double | calculateLastAccelerationButtonDistance (JoyControlStickButton *button) |
| |
| double | calculateAccelerationDistance (JoyControlStickButton *button) |
| |
| double | calculateXAxisDistance (int axisXValue) |
| |
| double | calculateYAxisDistance (int axisYValue) |
| |
| double | calculateLastAccelerationDirectionalDistance () |
| |
| double | getRadialDistance (int axisXValue, int axisYValue) |
| |
| double | getCircleAdjust () |
| | Get the current percentage of the outer square that should be ignored when performing the final axis calculations.
|
| |
| double | getButtonsEasingDuration () |
| |
| double | getSpringDeadCircleX () |
| |
| double | getSpringDeadCircleY () |
| |
| QString | getStickName () |
| |
| virtual QString | getName (bool forceFullFormat=false, bool displayNames=false) |
| |
| virtual QString | getPartialName (bool forceFullFormat=false, bool displayNames=false) |
| |
| JoyStickDirections | getCurrentDirection () |
| | Get the value for the currently active stick direction.
|
| |
| QList< double > | getDiagonalZoneAngles () |
| |
| QList< int > | getFourWayCardinalZoneAngles () |
| |
| QList< int > | getFourWayDiagonalZoneAngles () |
| |
| QHash< JoyStickDirections, JoyControlStickButton * > * | getButtons () |
| |
| JoyControlStickButton * | getDirectionButton (JoyStickDirections direction) |
| | Get a pointer to the stick direction button for the desired direction.
|
| |
| JoyControlStickModifierButton * | getModifierButton () |
| |
| SetJoystick * | getParentSet () |
| | Get pointer to the set that a stick belongs to.
|
| |
| JoyAxis * | getAxisX () |
| |
| JoyAxis * | getAxisY () |
| |
| void | setJoyMode (JoyMode mode) |
| |
| JoyMode | getJoyMode () |
| |
| void | setButtonsMouseMode (JoyButton::JoyMouseMovementMode mode) |
| |
| bool | hasSameButtonsMouseMode () |
| |
| JoyButton::JoyMouseMovementMode | getButtonsPresetMouseMode () |
| |
| void | setButtonsMouseCurve (JoyButton::JoyMouseCurve mouseCurve) |
| |
| bool | hasSameButtonsMouseCurve () |
| |
| JoyButton::JoyMouseCurve | getButtonsPresetMouseCurve () |
| |
| void | setButtonsSpringWidth (int value) |
| |
| int | getButtonsPresetSpringWidth () |
| |
| void | setButtonsSpringHeight (int value) |
| |
| int | getButtonsPresetSpringHeight () |
| |
| void | setButtonsSensitivity (double value) |
| |
| double | getButtonsPresetSensitivity () |
| |
| void | setButtonsWheelSpeedX (int value) |
| |
| void | setButtonsWheelSpeedY (int value) |
| |
| void | setButtonsExtraAccelerationStatus (bool enabled) |
| |
| bool | getButtonsExtraAccelerationStatus () |
| |
| void | setButtonsExtraAccelerationMultiplier (double value) |
| |
| double | getButtonsExtraAccelerationMultiplier () |
| |
| void | setButtonsStartAccelerationMultiplier (double value) |
| |
| double | getButtonsStartAccelerationMultiplier () |
| |
| void | setButtonsMinAccelerationThreshold (double value) |
| |
| double | getButtonsMinAccelerationThreshold () |
| |
| void | setButtonsMaxAccelerationThreshold (double value) |
| |
| double | getButtonsMaxAccelerationThreshold () |
| |
| void | setButtonsAccelerationExtraDuration (double value) |
| |
| double | getButtonsAccelerationEasingDuration () |
| |
| void | setButtonsSpringDeadCircleMultiplier (int value) |
| |
| int | getButtonsSpringDeadCircleMultiplier () |
| |
| void | setButtonsExtraAccelCurve (JoyButton::JoyExtraAccelerationCurve curve) |
| |
| JoyButton::JoyExtraAccelerationCurve | getButtonsExtraAccelerationCurve () |
| |
| QHash< JoyStickDirections, JoyControlStickButton * > | getButtonsForDirection (JoyControlStick::JoyStickDirections direction) |
| |
| void | setDirButtonsUpdateInitAccel (JoyControlStick::JoyStickDirections direction, bool state) |
| |
| double | calculateXDiagonalDeadZone (int axisXValue, int axisYValue) |
| |
| double | calculateYDiagonalDeadZone (int axisXValue, int axisYValue) |
| |
| virtual bool | isDefault () |
| |
| virtual void | setDefaultStickName (QString tempname) |
| |
| virtual QString | getDefaultStickName () |
| |
| virtual void | readConfig (QXmlStreamReader *xml) |
| | Take a XML stream and set the stick and direction button properties according to the values contained within the stream.
|
| |
| virtual void | writeConfig (QXmlStreamWriter *xml) |
| | Write the status of the properties of a stick and direction buttons to an XML stream.
|
| |
|
| virtual void | populateButtons () |
| | Populate the virtual buttons assigned to an analog stick.
|
| |
| void | createDeskEvent (bool ignoresets=false) |
| | Find the position of the two stick axes, deactivate no longer used stick direction button and then activate direction buttons for new direction.
|
| |
| void | determineStandardModeEvent (JoyControlStickButton *&eventbutton1, JoyControlStickButton *&eventbutton2) |
| | Determine which stick direction buttons should be active for a standard mode stick.
|
| |
| void | determineEightWayModeEvent (JoyControlStickButton *&eventbutton1, JoyControlStickButton *&eventbutton2, JoyControlStickButton *&eventbutton3) |
| | Determine which stick direction button should be active for a 8 way mode stick.
|
| |
| void | determineFourWayCardinalEvent (JoyControlStickButton *&eventbutton1, JoyControlStickButton *&eventbutton2) |
| | Determine which cardinal stick direction button should be active when using a four way cardinal stick.
|
| |
| void | determineFourWayDiagonalEvent (JoyControlStickButton *&eventbutton3) |
| | Determine which stick direction button should be active when using 4 way diagonal mode.
|
| |
| JoyControlStick::JoyStickDirections | determineStandardModeDirection () |
| | Find the current stick direction based on a Standard mode stick.
|
| |
| JoyControlStick::JoyStickDirections | determineStandardModeDirection (int axisXValue, int axisYValue) |
| |
| JoyControlStick::JoyStickDirections | determineEightWayModeDirection () |
| | Find the current stick direction based on a Eight Way mode stick.
|
| |
| JoyControlStick::JoyStickDirections | determineEightWayModeDirection (int axisXValue, int axisYValue) |
| |
| JoyControlStick::JoyStickDirections | determineFourWayCardinalDirection () |
| | Find the current stick direction based on a Four Way Cardinal mode stick.
|
| |
| JoyControlStick::JoyStickDirections | determineFourWayCardinalDirection (int axisXValue, int axisYValue) |
| |
| JoyControlStick::JoyStickDirections | determineFourWayDiagonalDirection () |
| | Find the current stick direction based on a Four Way Diagonal mode stick.
|
| |
| JoyControlStick::JoyStickDirections | determineFourWayDiagonalDirection (int axisXValue, int axisYValue) |
| |
| JoyControlStick::JoyStickDirections | calculateStickDirection () |
| | Calculate the current direction of the stick based on the values of the X and Y axes and the current mode of the stick.
|
| |
| JoyControlStick::JoyStickDirections | calculateStickDirection (int axisXValue, int axisYValue) |
| |
| void | performButtonPress (JoyControlStickButton *eventbutton, JoyControlStickButton *&activebutton, bool ignoresets) |
| | Activate a stick direction button.
|
| |
| void | performButtonRelease (JoyControlStickButton *&eventbutton, bool ignoresets) |
| | Stick direction button to release.
|
| |
| void | resetButtons () |
| | Reset all the properties of the stick direction buttons and the stick modifier button.
|
| |
| double | calculateXDistanceFromDeadZone (bool interpolate=false) |
| | Get distance of the X axis past the assigned dead zone.
|
| |
| double | calculateXDistanceFromDeadZone (int axisXValue, int axisYValue, bool interpolate=false) |
| | Get distance of the X axis past the assigned dead zone based on the passed X and Y axis values for the analog stick.
|
| |
| double | calculateYDistanceFromDeadZone (bool interpolate=false) |
| | Get distance of the Y axis past the assigned dead zone.
|
| |
| double | calculateYDistanceFromDeadZone (int axisXValue, int axisYValue, bool interpolate=false) |
| | Get distance of the Y axis past the assigned dead zone based on the passed X and Y axis values for the analog stick.
|
| |
| int | calculateCircleXValue (int axisXValue, int axisYValue) |
| |
| int | calculateCircleYValue (int axisXValue, int axisYValue) |
| |
| double | calculateEightWayDiagonalDistanceFromDeadZone () |
| |
| double | calculateEightWayDiagonalDistanceFromDeadZone (int axisXValue, int axisYValue) |
| |
| double | calculateEightWayDiagonalDistance (int axisXValue, int axisYValue) |
| |
| QHash< JoyStickDirections, JoyControlStickButton * > | getApplicableButtons () |
| |
| void | clearPendingAxisEvents () |
| |
Represents stick of a joystick.