![]() |
AntiMicroX
|
Represents stick of a joystick. More...
#include <joycontrolstick.h>
Public Types | |
| enum | JoyMode { StandardMode = 0, EightWayMode, FourWayCardinal, FourWayDiagonal } |
Public Types inherited from JoyStickDirectionsType | |
| enum | JoyStickDirections { StickCentered = 0, StickUp = 1, StickRight = 3, StickDown = 5, StickLeft = 7, StickRightUp = 2, StickRightDown = 4, StickLeftUp = 8, StickLeftDown = 6 } |
Public Slots | |
| void | reset () |
| void | setDeadZone (int value) |
| void | setMaxZone (int value) |
| void | setModifierZone (int value) |
| Sets the modifier zone of the stick to the given value. More... | |
| void | setModifierZoneInverted (bool value) |
| Inverts the direction of the modifier zone of the stick. More... | |
| void | setDiagonalRange (int value) |
| Set the diagonal range value for a stick. More... | |
| void | setStickName (QString tempName) |
| void | setButtonsSpringRelativeStatus (bool value) |
| void | setCircleAdjust (double circle) |
| Set the percentage of the outer square that should be ignored when performing the final axis calculations. More... | |
| void | setStickDelay (int value) |
| void | setButtonsEasingDuration (double value) |
| void | establishPropertyUpdatedConnection () |
| void | disconnectPropertyUpdatedConnection () |
Signals | |
| void | moved (int xaxis, int yaxis) |
| void | active (int xaxis, int yaxis) |
| void | released (int axis, int yaxis) |
| void | deadZoneChanged (int value) |
| void | diagonalRangeChanged (int value) |
| void | maxZoneChanged (int value) |
| void | modifierZoneChanged (int value) |
| void | circleAdjustChange (double circle) |
| void | stickDelayChanged (int value) |
| void | stickNameChanged () |
| void | joyModeChanged () |
| void | propertyUpdated () |
Public Member Functions | |
| 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. More... | |
| 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. More... | |
| 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. More... | |
| bool | hasSlotsAssigned () |
| Check all stick buttons and see if any have slots assigned. More... | |
| bool | isRelativeSpring () |
| bool | hasPendingEvent () |
| bool | isCalibrated () const |
| Check if the stick is calibrated. More... | |
| void | resetCalibration () |
| Resets the calibration of both stick axes back to uncalibrated state. More... | |
| void | getCalibration (double *offsetX, double *gainX, double *offsetY, double *gainY) const |
| Reads the calibration values of both stick axes. More... | |
| 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". More... | |
| int | getDeadZone () |
| Get the assigned dead zone value. More... | |
| int | getDiagonalRange () |
| Get the assigned diagonal range value. More... | |
| int | getIndex () |
| int | getRealJoyIndex () |
| int | getMaxZone () |
| int | getModifierZone () const |
| Returns the modifier zone of the stick. More... | |
| bool | getModifierZoneInverted () const |
| Checks if the modifier zone of this stick is inverted. More... | |
| int | getCurrentlyAssignedSet () |
| int | getXCoordinate () |
| Get the value for the corresponding X axis. More... | |
| int | getYCoordinate () |
| Get the value for the corresponding Y axis. More... | |
| int | getCircleXCoordinate () |
| int | getCircleYCoordinate () |
| int | getStickDelay () |
| double | getDistanceFromDeadZone () |
| Get current radial distance of the stick position past the assigned dead zone. More... | |
| 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. More... | |
| double | getAbsoluteRawDistance () |
| Get the raw radial distance of the stick. Values will be between 0 - 32,767. More... | |
| 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. More... | |
| double | calculateBearing (int axisXValue, int axisYValue) |
| Calculate the bearing (in degrees) corresponding to the passed X and Y axes values associated with the stick. More... | |
| double | calculateMouseDirectionalDistance (JoyControlStickButton *button) |
| Used to calculate the distance value that should be used for mouse movement. More... | |
| double | calculateDirectionalDistance () |
| Used to calculate the distance value that should be used for keyboard events and distance slots. More... | |
| 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. More... | |
| 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. More... | |
| 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. More... | |
| JoyControlStickModifierButton * | getModifierButton () |
| SetJoystick * | getParentSet () |
| Get pointer to the set that a stick belongs to. More... | |
| 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. More... | |
| virtual void | writeConfig (QXmlStreamWriter *xml) |
| Write the status of the properties of a stick and direction buttons to an XML stream. More... | |
Static Public Attributes | |
| static const JoyMode | DEFAULTMODE = JoyControlStick::StandardMode |
Protected Member Functions | |
| virtual void | populateButtons () |
| Populate the virtual buttons assigned to an analog stick. More... | |
| 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. More... | |
| void | determineStandardModeEvent (JoyControlStickButton *&eventbutton1, JoyControlStickButton *&eventbutton2) |
| Determine which stick direction buttons should be active for a standard mode stick. More... | |
| void | determineEightWayModeEvent (JoyControlStickButton *&eventbutton1, JoyControlStickButton *&eventbutton2, JoyControlStickButton *&eventbutton3) |
| Determine which stick direction button should be active for a 8 way mode stick. More... | |
| void | determineFourWayCardinalEvent (JoyControlStickButton *&eventbutton1, JoyControlStickButton *&eventbutton2) |
| Determine which cardinal stick direction button should be active when using a four way cardinal stick. More... | |
| void | determineFourWayDiagonalEvent (JoyControlStickButton *&eventbutton3) |
| Determine which stick direction button should be active when using 4 way diagonal mode. More... | |
| JoyControlStick::JoyStickDirections | determineStandardModeDirection () |
| Find the current stick direction based on a Standard mode stick. More... | |
| JoyControlStick::JoyStickDirections | determineStandardModeDirection (int axisXValue, int axisYValue) |
| JoyControlStick::JoyStickDirections | determineEightWayModeDirection () |
| Find the current stick direction based on a Eight Way mode stick. More... | |
| JoyControlStick::JoyStickDirections | determineEightWayModeDirection (int axisXValue, int axisYValue) |
| JoyControlStick::JoyStickDirections | determineFourWayCardinalDirection () |
| Find the current stick direction based on a Four Way Cardinal mode stick. More... | |
| JoyControlStick::JoyStickDirections | determineFourWayCardinalDirection (int axisXValue, int axisYValue) |
| JoyControlStick::JoyStickDirections | determineFourWayDiagonalDirection () |
| Find the current stick direction based on a Four Way Diagonal mode stick. More... | |
| 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. More... | |
| JoyControlStick::JoyStickDirections | calculateStickDirection (int axisXValue, int axisYValue) |
| void | performButtonPress (JoyControlStickButton *eventbutton, JoyControlStickButton *&activebutton, bool ignoresets) |
| Activate a stick direction button. More... | |
| void | performButtonRelease (JoyControlStickButton *&eventbutton, bool ignoresets) |
| Stick direction button to release. More... | |
| void | resetButtons () |
| Reset all the properties of the stick direction buttons and the stick modifier button. More... | |
| double | calculateXDistanceFromDeadZone (bool interpolate=false) |
| Get distance of the X axis past the assigned dead zone. More... | |
| 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. More... | |
| double | calculateYDistanceFromDeadZone (bool interpolate=false) |
| Get distance of the Y axis past the assigned dead zone. More... | |
| 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. More... | |
| 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 () |
Private Slots | |
| void | stickDirectionChangeEvent () |
| Slot called when directionDelayTimer has timed out. The method will call createDeskEvent. More... | |
Private Member Functions | |
| void | populateStickBtns () |
Private Attributes | |
| int | originset |
| int | deadZone |
| int | m_modifier_zone |
| bool | m_modifier_zone_inverted |
| int | diagonalRange |
| int | maxZone |
| int | index |
| int | stickDelay |
| double | circle |
| bool | isActive |
| bool | safezone |
| bool | pendingStickEvent |
| QPointer< JoyAxis > | axisX |
| QPointer< JoyAxis > | axisY |
| JoyControlStickButton * | activeButton1 |
| JoyControlStickButton * | activeButton2 |
| JoyControlStickButton * | activeButton3 |
| JoyStickDirections | currentDirection |
| JoyMode | currentMode |
| QString | stickName |
| QString | defaultStickName |
| QTimer | directionDelayTimer |
| QHash< JoyStickDirections, JoyControlStickButton * > | buttons |
| JoyControlStickModifierButton * | modifierButton |
Represents stick of a joystick.
|
explicit |
| JoyControlStick::~JoyControlStick | ( | ) |
| void JoyControlStick::activatePendingEvent | ( | ) |
|
signal |
| double JoyControlStick::calculateAccelerationDistance | ( | JoyControlStickButton * | button | ) |
| double JoyControlStick::calculateBearing | ( | ) |
Calculate the bearing (in degrees) corresponding to the current position of the X and Y axes of a stick.
| double JoyControlStick::calculateBearing | ( | int | axisXValue, |
| int | axisYValue | ||
| ) |
Calculate the bearing (in degrees) corresponding to the passed X and Y axes values associated with the stick.
| X | axis value |
| Y | axis value |
|
protected |
|
protected |
| double JoyControlStick::calculateDirectionalDistance | ( | ) |
Used to calculate the distance value that should be used for keyboard events and distance slots.
|
protected |
|
protected |
|
protected |
| double JoyControlStick::calculateLastAccelerationButtonDistance | ( | JoyControlStickButton * | button | ) |
| double JoyControlStick::calculateLastAccelerationDirectionalDistance | ( | ) |
| double JoyControlStick::calculateLastDirectionalDistance | ( | ) |
| double JoyControlStick::calculateLastMouseDirectionalDistance | ( | JoyControlStickButton * | button | ) |
| double JoyControlStick::calculateMouseDirectionalDistance | ( | JoyControlStickButton * | button | ) |
Used to calculate the distance value that should be used for mouse movement.
| button |
|
protected |
Calculate the current direction of the stick based on the values of the X and Y axes and the current mode of the stick.
|
protected |
| double JoyControlStick::calculateXAxisDistance | ( | int | axisXValue | ) |
| double JoyControlStick::calculateXDiagonalDeadZone | ( | int | axisXValue, |
| int | axisYValue | ||
| ) |
|
protected |
Get distance of the X axis past the assigned dead zone.
| Should | interpolation be performed along the diagonal regions. |
|
protected |
Get distance of the X axis past the assigned dead zone based on the passed X and Y axis values for the analog stick.
| X | axis value |
| Y | axis value |
| Should | interpolation be performed along the diagonal regions. |
| double JoyControlStick::calculateYAxisDistance | ( | int | axisYValue | ) |
| double JoyControlStick::calculateYDiagonalDeadZone | ( | int | axisXValue, |
| int | axisYValue | ||
| ) |
|
protected |
Get distance of the Y axis past the assigned dead zone.
| Should | interpolation be performed along the diagonal regions. |
|
protected |
Get distance of the Y axis past the assigned dead zone based on the passed X and Y axis values for the analog stick.
| X | axis value |
| Y | axis value |
| Should | interpolation be performed along the diagonal regions. |
|
signal |
|
protected |
| void JoyControlStick::clearPendingEvent | ( | ) |
| void JoyControlStick::copyAssignments | ( | JoyControlStick * | destStick | ) |
Copy slots from all stick buttons and properties from a stick onto another.
| JoyControlStick | object to be modified. |
|
protected |
Find the position of the two stick axes, deactivate no longer used stick direction button and then activate direction buttons for new direction.
| Should | set changing operations be ignored. Necessary in the middle of a set change. |
|
signal |
|
protected |
Find the current stick direction based on a Eight Way mode stick.
|
protected |
|
protected |
Determine which stick direction button should be active for a 8 way mode stick.
| [out] | Pointer | to an X axis stick direction button that should be active. |
| [out] | Pointer | to a Y axis stick direction button that should be active. |
| [out] | Pointer | to a diagonal stick direction button that should be active. |
|
protected |
Find the current stick direction based on a Four Way Cardinal mode stick.
|
protected |
|
protected |
Determine which cardinal stick direction button should be active when using a four way cardinal stick.
| [out] | Pointer | to an X axis stick direction button that should be active. |
| [out] | Pointer | to a Y axis stick direction button that should be active. |
|
protected |
Find the current stick direction based on a Four Way Diagonal mode stick.
|
protected |
|
protected |
Determine which stick direction button should be active when using 4 way diagonal mode.
| [out] | pointer | to a diagonal stick direction button that should be active. |
|
protected |
Find the current stick direction based on a Standard mode stick.
|
protected |
|
protected |
Determine which stick direction buttons should be active for a standard mode stick.
| [out] | Pointer | to an X axis stick direction button that should be active. |
| [out] | Pointer | to a Y axis stick direction button that should be active. |
|
signal |
|
slot |
|
slot |
| double JoyControlStick::getAbsoluteRawDistance | ( | ) |
Get the raw radial distance of the stick. Values will be between 0 - 32,767.
| double JoyControlStick::getAbsoluteRawDistance | ( | int | axisXValue, |
| int | axisYValue | ||
| ) |
|
protected |
| JoyAxis * JoyControlStick::getAxisX | ( | ) |
| JoyAxis * JoyControlStick::getAxisY | ( | ) |
| QHash< JoyControlStick::JoyStickDirections, JoyControlStickButton * > * JoyControlStick::getButtons | ( | ) |
| double JoyControlStick::getButtonsAccelerationEasingDuration | ( | ) |
| double JoyControlStick::getButtonsEasingDuration | ( | ) |
| JoyButton::JoyExtraAccelerationCurve JoyControlStick::getButtonsExtraAccelerationCurve | ( | ) |
| double JoyControlStick::getButtonsExtraAccelerationMultiplier | ( | ) |
| bool JoyControlStick::getButtonsExtraAccelerationStatus | ( | ) |
| QHash< JoyControlStick::JoyStickDirections, JoyControlStickButton * > JoyControlStick::getButtonsForDirection | ( | JoyControlStick::JoyStickDirections | direction | ) |
| double JoyControlStick::getButtonsMaxAccelerationThreshold | ( | ) |
| double JoyControlStick::getButtonsMinAccelerationThreshold | ( | ) |
| JoyButton::JoyMouseCurve JoyControlStick::getButtonsPresetMouseCurve | ( | ) |
| JoyButton::JoyMouseMovementMode JoyControlStick::getButtonsPresetMouseMode | ( | ) |
| double JoyControlStick::getButtonsPresetSensitivity | ( | ) |
| int JoyControlStick::getButtonsPresetSpringHeight | ( | ) |
| int JoyControlStick::getButtonsPresetSpringWidth | ( | ) |
| int JoyControlStick::getButtonsSpringDeadCircleMultiplier | ( | ) |
| double JoyControlStick::getButtonsStartAccelerationMultiplier | ( | ) |
| void JoyControlStick::getCalibration | ( | double * | offsetX, |
| double * | gainX, | ||
| double * | offsetY, | ||
| double * | gainY | ||
| ) | const |
Reads the calibration values of both stick axes.
| [out] | offsetX | Offset value "a" for X axis |
| [out] | gainX | Gain value "b" for X axis |
| [out] | offsetY | Offset value "a" for Y axis |
| [out] | gainY | Gain value "b" for Y axis |
| double JoyControlStick::getCircleAdjust | ( | ) |
Get the current percentage of the outer square that should be ignored when performing the final axis calculations.
| int JoyControlStick::getCircleXCoordinate | ( | ) |
| int JoyControlStick::getCircleYCoordinate | ( | ) |
| JoyControlStick::JoyStickDirections JoyControlStick::getCurrentDirection | ( | ) |
Get the value for the currently active stick direction.
| int JoyControlStick::getCurrentlyAssignedSet | ( | ) |
| int JoyControlStick::getDeadZone | ( | ) |
Get the assigned dead zone value.
|
virtual |
| int JoyControlStick::getDiagonalRange | ( | ) |
Get the assigned diagonal range value.
| QList< double > JoyControlStick::getDiagonalZoneAngles | ( | ) |
| JoyControlStickButton * JoyControlStick::getDirectionButton | ( | JoyStickDirections | direction | ) |
Get a pointer to the stick direction button for the desired direction.
| Value | of the direction of the stick. |
| double JoyControlStick::getDistanceFromDeadZone | ( | ) |
Get current radial distance of the stick position past the assigned dead zone.
| double JoyControlStick::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.
| X | axis value |
| Y | axis value |
| QList< int > JoyControlStick::getFourWayCardinalZoneAngles | ( | ) |
| QList< int > JoyControlStick::getFourWayDiagonalZoneAngles | ( | ) |
| int JoyControlStick::getIndex | ( | ) |
| JoyControlStick::JoyMode JoyControlStick::getJoyMode | ( | ) |
| int JoyControlStick::getMaxZone | ( | ) |
| JoyControlStickModifierButton * JoyControlStick::getModifierButton | ( | ) |
| int JoyControlStick::getModifierZone | ( | ) | const |
Returns the modifier zone of the stick.
| bool JoyControlStick::getModifierZoneInverted | ( | ) | const |
Checks if the modifier zone of this stick is inverted.
|
virtual |
| double JoyControlStick::getNormalizedAbsoluteDistance | ( | ) |
| SetJoystick * JoyControlStick::getParentSet | ( | ) |
Get pointer to the set that a stick belongs to.
|
virtual |
| double JoyControlStick::getRadialDistance | ( | int | axisXValue, |
| int | axisYValue | ||
| ) |
| int JoyControlStick::getRealJoyIndex | ( | ) |
| double JoyControlStick::getSpringDeadCircleX | ( | ) |
| double JoyControlStick::getSpringDeadCircleY | ( | ) |
| int JoyControlStick::getStickDelay | ( | ) |
| QString JoyControlStick::getStickName | ( | ) |
| int JoyControlStick::getXCoordinate | ( | ) |
Get the value for the corresponding X axis.
| int JoyControlStick::getYCoordinate | ( | ) |
Get the value for the corresponding Y axis.
| bool JoyControlStick::hasPendingEvent | ( | ) |
| bool JoyControlStick::hasSameButtonsMouseCurve | ( | ) |
| bool JoyControlStick::hasSameButtonsMouseMode | ( | ) |
| bool JoyControlStick::hasSlotsAssigned | ( | ) |
Check all stick buttons and see if any have slots assigned.
| bool JoyControlStick::inDeadZone | ( | ) |
Check the current stick position to see if it lies in the assigned dead zone.
| bool JoyControlStick::isCalibrated | ( | ) | const |
Check if the stick is calibrated.
|
virtual |
| bool JoyControlStick::isRelativeSpring | ( | ) |
| void JoyControlStick::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.
| Should | set changing routines be ignored. |
|
signal |
|
signal |
|
signal |
|
signal |
|
protected |
Activate a stick direction button.
| Stick | direction button that will be activated. | |
| [out] | Pointer | to the currently active button. |
| Should | set changing routines be ignored. |
|
protected |
Stick direction button to release.
| Stick | direction button that will be released. |
| Should | set changing routines be ignored. |
|
protectedvirtual |
Populate the virtual buttons assigned to an analog stick.
|
private |
|
signal |
| void JoyControlStick::queueJoyEvent | ( | bool | ignoresets | ) |
|
virtual |
Take a XML stream and set the stick and direction button properties according to the values contained within the stream.
| QXmlStreamReader | instance that will be used to read property values. |
| void JoyControlStick::releaseButtonEvents | ( | ) |
|
signal |
|
slot |
|
protected |
Reset all the properties of the stick direction buttons and the stick modifier button.
| void JoyControlStick::resetCalibration | ( | ) |
Resets the calibration of both stick axes back to uncalibrated state.
| void JoyControlStick::setButtonsAccelerationExtraDuration | ( | double | value | ) |
|
slot |
| void JoyControlStick::setButtonsExtraAccelCurve | ( | JoyButton::JoyExtraAccelerationCurve | curve | ) |
| void JoyControlStick::setButtonsExtraAccelerationMultiplier | ( | double | value | ) |
| void JoyControlStick::setButtonsExtraAccelerationStatus | ( | bool | enabled | ) |
| void JoyControlStick::setButtonsMaxAccelerationThreshold | ( | double | value | ) |
| void JoyControlStick::setButtonsMinAccelerationThreshold | ( | double | value | ) |
| void JoyControlStick::setButtonsMouseCurve | ( | JoyButton::JoyMouseCurve | mouseCurve | ) |
| void JoyControlStick::setButtonsMouseMode | ( | JoyButton::JoyMouseMovementMode | mode | ) |
| void JoyControlStick::setButtonsSensitivity | ( | double | value | ) |
| void JoyControlStick::setButtonsSpringDeadCircleMultiplier | ( | int | value | ) |
| void JoyControlStick::setButtonsSpringHeight | ( | int | value | ) |
|
slot |
| void JoyControlStick::setButtonsSpringWidth | ( | int | value | ) |
| void JoyControlStick::setButtonsStartAccelerationMultiplier | ( | double | value | ) |
| void JoyControlStick::setButtonsWheelSpeedX | ( | int | value | ) |
| void JoyControlStick::setButtonsWheelSpeedY | ( | int | value | ) |
| void JoyControlStick::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".
| [in] | offsetX | Offset value "a" for X axis |
| [in] | gainX | Gain value "b" for X axis |
| [in] | offsetY | Offset value "a" for Y axis |
| [in] | gainY | Gain value "b" for Y axis |
|
slot |
Set the percentage of the outer square that should be ignored when performing the final axis calculations.
| Percentage | represented by the range of 0.0 - 1.0. |
|
slot |
|
virtual |
|
slot |
Set the diagonal range value for a stick.
| Value | between 1 - 90. |
| void JoyControlStick::setDirButtonsUpdateInitAccel | ( | JoyControlStick::JoyStickDirections | direction, |
| bool | state | ||
| ) |
| void JoyControlStick::setIndex | ( | int | index | ) |
|
slot |
|
slot |
Sets the modifier zone of the stick to the given value.
| [in] | value | New stick modifier zone |
|
slot |
Inverts the direction of the modifier zone of the stick.
| [in] | value | True if the zone should be inverted, false otherwise. |
|
slot |
|
slot |
|
signal |
|
privateslot |
Slot called when directionDelayTimer has timed out. The method will call createDeskEvent.
|
signal |
|
virtual |
Write the status of the properties of a stick and direction buttons to an XML stream.
| QXmlStreamWriter | instance that will be used to write a profile. |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
static |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
1.8.17