![]() |
AntiMicroX
|
Represents a single joystick button being part of a SetJoystick Contains multiple JoyButtonSlots which do the actual mapping. Also has various static methods for mouse cursor movement. More...
#include <joybutton.h>
Data Structures | |
| struct | _mouseCursorInfo |
Public Types | |
| enum | SetChangeCondition { SetChangeDisabled = 0, SetChangeOneWay, SetChangeTwoWay, SetChangeWhileHeld } |
| enum | JoyMouseMovementMode { MouseCursor = 0, MouseSpring } |
| enum | JoyMouseCurve { EnhancedPrecisionCurve = 0, LinearCurve, QuadraticCurve, CubicCurve, QuadraticExtremeCurve, PowerCurve, EasingQuadraticCurve, EasingCubicCurve } |
| enum | JoyExtraAccelerationCurve { LinearAccelCurve, EaseOutSineCurve, EaseOutQuadAccelCurve, EaseOutCubicAccelCurve } |
| enum | TurboMode { NormalTurbo = 0, GradientTurbo, PulseTurbo } |
| typedef struct JoyButton::_mouseCursorInfo | mouseCursorInfo |
Public Slots | |
| void | setTurboInterval (int interval) |
| void | setToggle (bool toggle) |
| void | setUseTurbo (bool useTurbo) |
| void | setMouseSpeedX (int speed) |
| void | setMouseSpeedY (int speed) |
| void | setWheelSpeed (int speed, QChar ax) |
| void | setSpringWidth (int value) |
| void | setSpringHeight (int value) |
| void | setSensitivity (double value) |
| void | setSpringRelativeStatus (bool value) |
| void | setActionName (QString tempName) |
| void | setButtonName (QString tempName) |
| void | setEasingDuration (double value) |
| void | establishPropertyUpdatedConnections () |
| void | disconnectPropertyUpdatedConnections () |
| void | removeAssignedSlot (int index) |
| virtual void | reset () |
| virtual void | reset (int index) |
| virtual void | resetProperties () |
| virtual void | clearSlotsEventReset (bool clearSignalEmit=true) |
| virtual void | eventReset () |
| virtual void | mouseEvent () |
| Calculate mouse movement coordinates for mouse movement slots currently active. More... | |
| static void | establishMouseTimerConnections () |
| Change initial settings used for mouse event timer being used by the application. More... | |
| bool | setAssignedSlot (int code, int alias, int index, JoyButtonSlot::JoySlotInputAction mode=JoyButtonSlot::JoyKeyboard) |
| Create new JoyButtonSlot with data provided and replace an existing slot in the assignment list if one exists. More... | |
| bool | setAssignedSlot (int code, JoyButtonSlot::JoySlotInputAction mode=JoyButtonSlot::JoyKeyboard) |
| Create new JoyButtonSlot with data provided and append the new slot an existing to the assignment list. More... | |
| bool | setAssignedSlot (int code, int alias, JoyButtonSlot::JoySlotInputAction mode=JoyButtonSlot::JoyKeyboard) |
| Create new JoyButtonSlot with data provided and append the new slot an existing to the assignment list. More... | |
| bool | setAssignedSlot (JoyButtonSlot *otherSlot, int index) |
| bool | insertAssignedSlot (int code, int alias, int index, JoyButtonSlot::JoySlotInputAction mode=JoyButtonSlot::JoyKeyboard) |
| Create new JoyButtonSlot with data provided and insert it into assignments list if it is valid. More... | |
| void | buildActiveZoneSummaryString () |
| Generate active zone string and notify other objects. More... | |
Signals | |
| void | clicked (int index) |
| void | released (int index) |
| void | keyChanged (int keycode) |
| void | mouseChanged (int mousecode) |
| void | setChangeActivated (int index) |
| void | setAssignmentChanged (int current_button, int associated_set, int mode) |
| void | finishedPause () |
| void | turboChanged (bool state) |
| void | toggleChanged (bool state) |
| void | turboIntervalChanged (int interval) |
| void | slotsChanged () |
| void | actionNameChanged () |
| void | buttonNameChanged () |
| void | propertyUpdated () |
| void | activeZoneChanged () |
Public Member Functions | |
| JoyButton (int sdl_button_index, int originset, SetJoystick *parentSet, QObject *parent) | |
| ~JoyButton () | |
| void | joyEvent (bool pressed, bool ignoresets=false) |
| Activates mapped slots and generates QT events which highlight pressed controller buttons. More... | |
| void | queuePendingEvent (bool pressed, bool ignoresets=false) |
| void | activatePendingEvent () |
| void | setJoyNumber (int index) |
| void | clearPendingEvent () |
| void | setCustomName (QString name) |
| void | setUpdateInitAccel (bool state) |
| void | removeVDPad () |
| void | setIgnoreEventState (bool ignore) |
| void | setMouseMode (JoyMouseMovementMode mousemode) |
| void | setMouseCurve (JoyMouseCurve selectedCurve) |
| void | setWhileHeldStatus (bool status) |
| void | setCycleResetStatus (bool enabled) |
| void | copyAssignments (JoyButton *destButton) |
| Copy assignments and properties from one button to another. Used for set copying. More... | |
| void | resetAccelerationDistances () |
| void | setExtraAccelerationStatus (bool status) |
| void | setExtraAccelerationMultiplier (double value) |
| void | setCycleResetTime (int interval) |
| void | setMinAccelThreshold (double value) |
| void | setExtraAccelerationCurve (JoyExtraAccelerationCurve curve) |
| void | setSpringDeadCircleMultiplier (int value) |
| void | setAccelExtraDuration (double value) |
| void | setStartAccelMultiplier (double value) |
| void | setMaxAccelThreshold (double value) |
| void | setChangeSetSelection (int index, bool updateActiveString=true) |
| void | activateMiniSlots (JoyButtonSlot *slot, JoyButtonSlot *mix) |
| bool | hasPendingEvent () |
| bool | getToggleState () |
| bool | isUsingTurbo () |
| bool | getButtonState () |
| Checks if this button is currently active. More... | |
| bool | containsSequence () |
| bool | containsDistanceSlots () |
| bool | containsReleaseSlots () |
| bool | getIgnoreEventState () |
| bool | getWhileHeldStatus () |
| bool | hasActiveSlots () |
| bool | isCycleResetActive () |
| bool | isRelativeSpring () |
| bool | isPartVDPad () |
| bool | isExtraAccelerationEnabled () |
| double | getMinAccelThreshold () |
| double | getMaxAccelThreshold () |
| double | getStartAccelMultiplier () |
| double | getAccelExtraDuration () |
| double | getExtraAccelerationMultiplier () |
| double | getSensitivity () |
| double | getEasingDuration () |
| int | getJoyNumber () |
| Get 0 indexed number of SDL button index. More... | |
| int | getTurboInterval () |
| int | getMouseSpeedX () |
| int | getMouseSpeedY () |
| int | getWheelSpeedX () |
| int | getWheelSpeedY () |
| int | getSetSelection () |
| int | getOriginSet () |
| int | getSpringWidth () |
| int | getSpringHeight () |
| int | getCycleResetTime () |
| int | getSpringDeadCircleMultiplier () |
| QString | getCustomName () |
| QString | getActionName () |
| QString | getButtonName () |
| QList< JoyButtonSlot * > * | getAssignedSlots () |
| const QList< JoyButtonSlot * > & | getActiveSlots () |
| virtual bool | isPartRealAxis () |
| Check if button should be considered a part of a real controller axis. Needed for some dialogs so the program won't have to resort to type checking. More... | |
| virtual bool | isModifierButton () |
| bool | isDefault () |
| Check if button properties are at their default values. More... | |
| virtual JoyMouseCurve | getDefaultMouseCurve () const |
| Returns the default mouse curve for this JoyButton type. Can be overwritten by subclasses. More... | |
| virtual int | getRealJoyNumber () const |
| Get a 1 indexed number of button. More... | |
| virtual double | getDistanceFromDeadZone () |
| Get the distance that an element is away from its assigned dead zone. More... | |
| virtual double | getMouseDistanceFromDeadZone () |
| Get the distance factor that should be used for mouse movement. More... | |
| virtual double | getLastMouseDistanceFromDeadZone () |
| virtual double | getAccelerationDistance () |
| virtual double | getLastAccelerationDistance () |
| virtual void | initializeDistanceValues () |
| virtual void | setTurboMode (TurboMode mode) |
| Set the turbo mode that the button should use. More... | |
| virtual void | setDefaultButtonName (QString tempname) |
| virtual void | copyLastMouseDistanceFromDeadZone (JoyButton *srcButton) |
| virtual void | copyLastAccelerationDistance (JoyButton *srcButton) |
| virtual void | setVDPad (VDPad *vdpad) |
| virtual void | setChangeSetCondition (SetChangeCondition condition, bool passive=false, bool updateActiveString=true) |
| virtual QString | getPartialName (bool forceFullFormat=false, bool displayNames=false) const |
| virtual QString | getSlotsSummary () |
| Generate a string representing a summary of the slots currently assigned to a button. More... | |
| virtual QString | getSlotsString () |
| Generate a string representing all the currently assigned slots for a button. More... | |
| virtual QString | getActiveZoneSummary () |
| Generate a string that represents slots that will be activated or slots that are currently active if a button is pressed. More... | |
| virtual QString | getCalculatedActiveZoneSummary () |
| virtual QString | getName (bool forceFullFormat=false, bool displayNames=false) |
| virtual QString | getXmlName () |
| virtual QString | getDefaultButtonName () |
| virtual QList< JoyButtonSlot * > | getActiveZoneList () |
| SetChangeCondition | getChangeSetCondition () |
| VDPad * | getVDPad () |
| JoyMouseMovementMode | getMouseMode () |
| JoyMouseCurve | getMouseCurve () |
| SetJoystick * | getParentSet () |
| TurboMode | getTurboMode () |
| Get currently assigned turbo mode. More... | |
| JoyExtraAccelerationCurve | getExtraAccelerationCurve () |
| bool | insertAssignedSlot (JoyButtonSlot *slot, bool updateActiveString=true) |
| bool | insertAssignedSlot (JoyButtonSlot *newSlot, int index, bool updateActiveString=true) |
| bool | containsJoyMixSlot () |
Static Public Member Functions | |
| static int | calculateFinalMouseSpeed (JoyMouseCurve curve, int value, const float joyspeed) |
| Calculate maximum mouse speed when using a given mouse curve. More... | |
| static bool | hasCursorEvents (QList< JoyButton::mouseCursorInfo > *cursorXSpeedsList, QList< JoyButton::mouseCursorInfo > *cursorYSpeedsList) |
| static bool | hasSpringEvents (QList< PadderCommon::springModeInfo > *springXSpeedsList, QList< PadderCommon::springModeInfo > *springYSpeedsList) |
| static bool | shouldInvokeMouseEvents (QList< JoyButton * > *pendingMouseButtons, QTimer *staticMouseEventTimer, QElapsedTimer *testOldMouseTime) |
| static void | setWeightModifier (double modifier, double maxWeightModifier, double &weightModifier) |
| Set the weight modifier to use for mouse smoothing. More... | |
| static void | moveMouseCursor (int &movedX, int &movedY, int &movedElapsed, QList< double > *mouseHistoryX, QList< double > *mouseHistoryY, QElapsedTimer *testOldMouseTime, QTimer *staticMouseEventTimer, int mouseRefreshRate, int mouseHistorySize, QList< JoyButton::mouseCursorInfo > *cursorXSpeeds, QList< JoyButton::mouseCursorInfo > *cursorYSpeeds, double &cursorRemainderX, double &cursorRemainderY, double weightModifier, int idleMouseRefrRate, QList< JoyButton * > *pendingMouseButtonse) |
| Take cursor mouse information provided by all buttons and send a cursor mode mouse event to the display server. More... | |
| static void | moveSpringMouse (int &movedX, int &movedY, bool &hasMoved, int springModeScreen, QList< PadderCommon::springModeInfo > *springXSpeeds, QList< PadderCommon::springModeInfo > *springYSpeeds, QList< JoyButton * > *pendingMouseButtons, int mouseRefreshRate, int idleMouseRefrRate, QTimer *staticMouseEventTimer) |
| Take spring mouse information provided by all buttons and send a spring mode mouse event to the display server. More... | |
| static void | setMouseHistorySize (int size, int maxMouseHistSize, int &mouseHistSize, QList< double > *mouseHistoryX, QList< double > *mouseHistoryY) |
| Set mouse history buffer size used for mouse smoothing. More... | |
| static void | setMouseRefreshRate (int refresh, int &mouseRefreshRate, int idleMouseRefrRate, JoyButtonMouseHelper *mouseHelper, QList< double > *mouseHistoryX, QList< double > *mouseHistoryY, QElapsedTimer *testOldMouseTime, QTimer *staticMouseEventTimer) |
| Set the mouse refresh rate when a mouse slot is active. More... | |
| static void | setSpringModeScreen (int screen, int &springModeScreen) |
| static void | resetActiveButtonMouseDistances (JoyButtonMouseHelper *mouseHelper) |
| static void | setGamepadRefreshRate (int refresh, int &gamepadRefreshRate, JoyButtonMouseHelper *mouseHelper) |
| Set the gamepad poll rate to be used in the application. More... | |
| static void | restartLastMouseTime (QElapsedTimer *testOldMouseTime) |
| static void | setStaticMouseThread (QThread *thread, QTimer *staticMouseEventTimer, QElapsedTimer *testOldMouseTime, int idleMouseRefrRate, JoyButtonMouseHelper *mouseHelper) |
| static void | indirectStaticMouseThread (QThread *thread, QTimer *staticMouseEventTimer, JoyButtonMouseHelper *mouseHelper) |
| static void | invokeMouseEvents (JoyButtonMouseHelper *mouseHelper) |
| static JoyButtonMouseHelper * | getMouseHelper () |
| static QList< JoyButton * > * | getPendingMouseButtons () |
| Get the list of buttons that have a pending mouse movement event. More... | |
| static QList< JoyButton::mouseCursorInfo > * | getCursorXSpeeds () |
| static QList< JoyButton::mouseCursorInfo > * | getCursorYSpeeds () |
| static QList< PadderCommon::springModeInfo > * | getSpringXSpeeds () |
| static QList< PadderCommon::springModeInfo > * | getSpringYSpeeds () |
| static QTimer * | getStaticMouseEventTimer () |
| static QElapsedTimer * | getTestOldMouseTime () |
Static Public Attributes | |
| static const JoyMouseCurve | DEFAULTMOUSECURVE = JoyButton::EnhancedPrecisionCurve |
| static const SetChangeCondition | DEFAULTSETCONDITION = JoyButton::SetChangeDisabled |
| static const JoyMouseMovementMode | DEFAULTMOUSEMODE = JoyButton::MouseCursor |
| static const TurboMode | DEFAULTTURBOMODE = JoyButton::NormalTurbo |
| static const JoyExtraAccelerationCurve | DEFAULTEXTRAACCELCURVE = JoyButton::LinearAccelCurve |
Protected Slots | |
| virtual void | turboEvent () |
| virtual void | wheelEventVertical () |
| virtual void | wheelEventHorizontal () |
| void | createDeskEvent () |
| void | releaseDeskEvent (bool skipsetchange=false) |
Protected Member Functions | |
| int | getPreferredKeyPressTime () |
| Obtain the appropriate key press time for the current event. Order of preference: active key press time slot value -> profile value -> program default value. More... | |
| double | getTotalSlotDistance (JoyButtonSlot *slot) |
| bool | distanceEvent () |
| bool | checkForDelaySequence () |
| TODO: CHECK IF METHOD WOULD BE USEFUL. CURRENTLY NOT USED. More... | |
| void | clearAssignedSlots (bool signalEmit=true) |
| void | releaseSlotEvent () |
| void | checkForPressedSetChange () |
| void | checkTurboCondition (JoyButtonSlot *slot) |
| Check if turbo should be disabled for a slot. More... | |
| void | vdpadPassEvent (bool pressed, bool ignoresets=false) |
| void | localBuildActiveZoneSummaryString () |
| Generate active zone string but do not notify any other object. More... | |
| virtual double | getCurrentSpringDeadCircle () |
| QString | buildActiveZoneSummary (QList< JoyButtonSlot * > &tempList) |
Static Protected Member Functions | |
| static bool | hasFutureSpringEvents (QList< JoyButton * > *pendingMouseButtons) |
Protected Attributes | |
| TurboMode | currentTurboMode |
| int | m_index_sdl |
| int | turboInterval |
| int | wheelSpeedX |
| int | wheelSpeedY |
| int | setSelection |
| int | tempTurboInterval |
| int | springDeadCircleMultiplier |
| bool | isButtonPressed |
| bool | isKeyPressed |
| double | lastDistance |
| double | lastWheelVerticalDistance |
| double | lastWheelHorizontalDistance |
| QTimer | turboTimer |
| QTimer | mouseWheelVerticalEventTimer |
| QTimer | mouseWheelHorizontalEventTimer |
| QElapsedTimer | wheelVerticalTime |
| QElapsedTimer | wheelHorizontalTime |
| QElapsedTimer | turboHold |
| QPointer< SetJoystick > | m_parentSet |
| SetChangeCondition | setSelectionCondition |
| JoyButtonSlot * | currentWheelVerticalEvent |
| JoyButtonSlot * | currentWheelHorizontalEvent |
| QQueue< bool > | ignoreSetQueue |
| QQueue< bool > | isButtonPressedQueue |
| QQueue< JoyButtonSlot * > | mouseWheelVerticalEventQueue |
| QQueue< JoyButtonSlot * > | mouseWheelHorizontalEventQueue |
| QString | buttonName |
| QString | defaultButtonName |
Static Protected Attributes | |
| static int | timeBetweenMiniSlots = 55 |
| static int | allSlotTimeBetweenSlots = 0 |
| static QList< JoyButtonSlot * > | mouseSpeedModList |
| static QList< mouseCursorInfo > | cursorXSpeeds |
| static QList< mouseCursorInfo > | cursorYSpeeds |
| static QList< PadderCommon::springModeInfo > | springXSpeeds |
| static QList< PadderCommon::springModeInfo > | springYSpeeds |
| static QList< JoyButton * > | pendingMouseButtons |
| static JoyButtonSlot * | lastActiveKey = nullptr |
| static JoyButtonMouseHelper | mouseHelper |
Private Slots | |
| void | releaseActiveSlots () |
| void | activateSlots () |
| void | waitForDeskEvent () |
| void | waitForReleaseDeskEvent () |
| void | holdEvent () |
| void | delayEvent () |
| void | pauseWaitEvent () |
| void | checkForSetChange () |
| void | keyPressEvent () |
| void | slotSetChange () |
Private Member Functions | |
| void | updatePendingParams (bool isEvent, bool isPressed, bool areIgnoredSets) |
| void | updateMouseParams (bool updatedLastDist, bool updatedStartDist, double oldAccelMultiVal) |
| void | resetSlotsProp (bool currentChangedSlot=false) |
| void | stopTimers (bool stoppedSlotSetTimer) |
| void | clearQueues () |
| void | restartAccelParams (bool updatedOldAccel, bool restartedAccelDurTimer, bool restartedRestParams) |
| void | lockForWritedString (QString ¶m, QString value) |
| void | releaseEachSlot (bool &changeRepeatState, int &references, int tempcode, JoyButtonSlot::JoySlotInputAction mode, JoyButtonSlot *slot) |
| void | resetAllProperties () |
| void | resetPrivVars () |
| void | restartAllForSetChange () |
| void | startTimerOverrun (int slotCode, QElapsedTimer *currSlotTime, QTimer *currSlotTimer, bool releasedDeskTimer=false) |
| void | findJoySlotsEnd (QListIterator< JoyButtonSlot * > *slotiter) |
| void | changeStatesQueue (bool currentReleased) |
| void | countActiveSlots (int tempcode, int &references, JoyButtonSlot *slot, QHash< int, int > &activeSlotsHash, bool &changeRepeatState, bool activeSlotHashWindows=false) |
| void | releaseMoveSlots (QList< JoyButton::mouseCursorInfo > &cursorSpeeds, JoyButtonSlot *slot, QList< int > &indexesToRemove) |
| void | setSpringDeadCircle (double &springDeadCircle, int mouseDirection) |
| void | checkSpringDeadCircle (int tempcode, double &springDeadCircle, int mouseSlot1, int mouseSlot2) |
| void | setDistanceForSpring (JoyButtonMouseHelper &mouseHelper, double &mouseFirstAx, double &mouseSecondAx, double distanceFromDeadZone) |
| void | changeTurboParams (bool _isKeyPressed, bool isButtonPressed) |
| void | updateParamsAfterDistEvent () |
| void | startSequenceOfPressActive (bool isTurbo, QString debugText) |
| QList< JoyButtonSlot * > & | getAssignmentsLocal () |
| QList< JoyButtonSlot * > & | getActiveSlotsLocal () |
| void | updateMouseProperties (double newAxisValue, double newSpringDead, int newSpringWidth, int newSpringHeight, bool relatived, int modeScreen, QList< PadderCommon::springModeInfo > &springSpeeds, QChar axis, double newAxisValueY=0, double newSpringDeadY=0) |
| void | buildActiveZoneSummarySwitchSlots (JoyButtonSlot::JoySlotInputAction mode, JoyButtonSlot *slot, bool &behindHold, QStringList *stringlist, int &i, QListIterator< JoyButtonSlot * > *iter, bool slotsActive) |
| void | addEachSlotToActives (JoyButtonSlot *slot, int &i, bool &delaySequence, bool &exit, QListIterator< JoyButtonSlot * > *slotiter) |
Static Private Member Functions | |
| static void | distanceForMovingAx (double &finalAx, mouseCursorInfo infoAx) |
| Combines mouse movement distances from multiple mouse mappings. More... | |
| static void | adjustAxForCursor (QList< double > *mouseHistoryList, double &adjustedAx, double &cursorRemainder, double weightModifier) |
Static Private Attributes | |
| static QTimer | staticMouseEventTimer |
| static QElapsedTimer | testOldMouseTime |
Represents a single joystick button being part of a SetJoystick Contains multiple JoyButtonSlots which do the actual mapping. Also has various static methods for mouse cursor movement.
| typedef struct JoyButton::_mouseCursorInfo JoyButton::mouseCursorInfo |
| enum JoyButton::TurboMode |
|
explicit |
| JoyButton::~JoyButton | ( | ) |
|
signal |
| void JoyButton::activateMiniSlots | ( | JoyButtonSlot * | slot, |
| JoyButtonSlot * | mix | ||
| ) |
| void JoyButton::activatePendingEvent | ( | ) |
|
privateslot |
|
signal |
|
private |
|
staticprivate |
|
protected |
|
slot |
Generate active zone string and notify other objects.
|
private |
|
signal |
|
static |
Calculate maximum mouse speed when using a given mouse curve.
| Mouse | curve |
| Mouse | speed value |
|
private |
|
private |
|
protected |
TODO: CHECK IF METHOD WOULD BE USEFUL. CURRENTLY NOT USED.
|
protected |
|
privateslot |
|
private |
|
protected |
Check if turbo should be disabled for a slot.
| JoyButtonSlot | to check |
|
protected |
| void JoyButton::clearPendingEvent | ( | ) |
|
inlineprivate |
|
virtualslot |
|
signal |
| bool JoyButton::containsDistanceSlots | ( | ) |
| bool JoyButton::containsJoyMixSlot | ( | ) |
| bool JoyButton::containsReleaseSlots | ( | ) |
| bool JoyButton::containsSequence | ( | ) |
Copy assignments and properties from one button to another. Used for set copying.
| Button | instance that should be modified. |
|
private |
|
protectedslot |
|
privateslot |
|
slot |
|
protected |
|
staticprivate |
Combines mouse movement distances from multiple mouse mappings.
| [in,out] | finalAx | Combined mouse distance from previous iteration. Updated by this function. |
| [in] | infoAx | Next mouse event to join into finalAx. |
|
staticslot |
Change initial settings used for mouse event timer being used by the application.
|
slot |
|
virtualslot |
|
private |
|
signal |
|
virtual |
Reimplemented in JoyControlStickButton, JoyAxisButton, and JoyControlStickModifierButton.
| double JoyButton::getAccelExtraDuration | ( | ) |
| QString JoyButton::getActionName | ( | ) |
| const QList< JoyButtonSlot * > & JoyButton::getActiveSlots | ( | ) |
|
private |
|
virtual |
|
virtual |
Generate a string that represents slots that will be activated or slots that are currently active if a button is pressed.
Reimplemented in JoyControlStickButton.
| QList< JoyButtonSlot * > * JoyButton::getAssignedSlots | ( | ) |
|
private |
| QString JoyButton::getButtonName | ( | ) |
| bool JoyButton::getButtonState | ( | ) |
Checks if this button is currently active.
|
virtual |
Reimplemented in JoyControlStickButton.
| JoyButton::SetChangeCondition JoyButton::getChangeSetCondition | ( | ) |
|
protectedvirtual |
|
static |
|
static |
| QString JoyButton::getCustomName | ( | ) |
| int JoyButton::getCycleResetTime | ( | ) |
|
virtual |
|
virtual |
Returns the default mouse curve for this JoyButton type. Can be overwritten by subclasses.
Reimplemented in JoySensorButton.
|
virtual |
Get the distance that an element is away from its assigned dead zone.
Reimplemented in JoySensorButton, JoyControlStickButton, JoyAxisButton, and JoyControlStickModifierButton.
| double JoyButton::getEasingDuration | ( | ) |
| JoyButton::JoyExtraAccelerationCurve JoyButton::getExtraAccelerationCurve | ( | ) |
| double JoyButton::getExtraAccelerationMultiplier | ( | ) |
| bool JoyButton::getIgnoreEventState | ( | ) |
| int JoyButton::getJoyNumber | ( | ) |
Get 0 indexed number of SDL button index.
|
virtual |
Reimplemented in JoyControlStickButton, JoyAxisButton, and JoyControlStickModifierButton.
|
virtual |
Reimplemented in JoyControlStickButton, JoyAxisButton, and JoyControlStickModifierButton.
| double JoyButton::getMaxAccelThreshold | ( | ) |
| double JoyButton::getMinAccelThreshold | ( | ) |
| JoyButton::JoyMouseCurve JoyButton::getMouseCurve | ( | ) |
|
virtual |
Get the distance factor that should be used for mouse movement.
Reimplemented in JoySensorButton, JoyControlStickButton, JoyAxisButton, and JoyControlStickModifierButton.
|
static |
| JoyButton::JoyMouseMovementMode JoyButton::getMouseMode | ( | ) |
| int JoyButton::getMouseSpeedX | ( | ) |
| int JoyButton::getMouseSpeedY | ( | ) |
|
virtual |
| int JoyButton::getOriginSet | ( | ) |
| SetJoystick * JoyButton::getParentSet | ( | ) |
|
virtual |
Reimplemented in JoySensorButton, JoyDPadButton, JoyControlStickButton, JoyAxisButton, and JoyControlStickModifierButton.
|
static |
Get the list of buttons that have a pending mouse movement event.
|
protected |
Obtain the appropriate key press time for the current event. Order of preference: active key press time slot value -> profile value -> program default value.
|
virtual |
Get a 1 indexed number of button.
Reimplemented in JoySensorButton, JoyDPadButton, and JoyControlStickButton.
| double JoyButton::getSensitivity | ( | ) |
| int JoyButton::getSetSelection | ( | ) |
|
virtual |
Generate a string representing all the currently assigned slots for a button.
|
virtual |
Generate a string representing a summary of the slots currently assigned to a button.
| int JoyButton::getSpringDeadCircleMultiplier | ( | ) |
| int JoyButton::getSpringHeight | ( | ) |
| int JoyButton::getSpringWidth | ( | ) |
|
static |
|
static |
| double JoyButton::getStartAccelMultiplier | ( | ) |
|
static |
|
static |
| bool JoyButton::getToggleState | ( | ) |
|
protected |
| int JoyButton::getTurboInterval | ( | ) |
| JoyButton::TurboMode JoyButton::getTurboMode | ( | ) |
Get currently assigned turbo mode.
| VDPad * JoyButton::getVDPad | ( | ) |
| int JoyButton::getWheelSpeedX | ( | ) |
| int JoyButton::getWheelSpeedY | ( | ) |
| bool JoyButton::getWhileHeldStatus | ( | ) |
|
virtual |
Reimplemented in JoySensorButton, JoyDPadButton, JoyControlStickButton, JoyAxisButton, GameControllerTriggerButton, and JoyControlStickModifierButton.
| bool JoyButton::hasActiveSlots | ( | ) |
|
static |
|
staticprotected |
| bool JoyButton::hasPendingEvent | ( | ) |
|
static |
|
privateslot |
|
static |
|
virtual |
|
slot |
Create new JoyButtonSlot with data provided and insert it into assignments list if it is valid.
| Native | virtual code being used. |
| Qt | key alias used for abstracting native virtual code. |
| Index | number in the list. |
| Mode | of the slot. |
| bool JoyButton::insertAssignedSlot | ( | JoyButtonSlot * | newSlot, |
| int | index, | ||
| bool | updateActiveString = true |
||
| ) |
| bool JoyButton::insertAssignedSlot | ( | JoyButtonSlot * | slot, |
| bool | updateActiveString = true |
||
| ) |
|
static |
| bool JoyButton::isCycleResetActive | ( | ) |
| bool JoyButton::isDefault | ( | ) |
Check if button properties are at their default values.
| bool JoyButton::isExtraAccelerationEnabled | ( | ) |
|
virtual |
|
virtual |
Check if button should be considered a part of a real controller axis. Needed for some dialogs so the program won't have to resort to type checking.
Reimplemented in JoySensorButton, JoyControlStickButton, JoyAxisButton, and JoyControlStickModifierButton.
| bool JoyButton::isPartVDPad | ( | ) |
| bool JoyButton::isRelativeSpring | ( | ) |
| bool JoyButton::isUsingTurbo | ( | ) |
| void JoyButton::joyEvent | ( | bool | pressed, |
| bool | ignoresets = false |
||
| ) |
Activates mapped slots and generates QT events which highlight pressed controller buttons.
|
signal |
|
privateslot |
|
protected |
Generate active zone string but do not notify any other object.
|
inlineprivate |
|
signal |
|
virtualslot |
Calculate mouse movement coordinates for mouse movement slots currently active.
|
static |
Take cursor mouse information provided by all buttons and send a cursor mode mouse event to the display server.
|
static |
Take spring mouse information provided by all buttons and send a spring mode mouse event to the display server.
|
privateslot |
|
signal |
| void JoyButton::queuePendingEvent | ( | bool | pressed, |
| bool | ignoresets = false |
||
| ) |
|
privateslot |
|
signal |
|
protectedslot |
|
private |
|
private |
|
protected |
|
slot |
| void JoyButton::removeVDPad | ( | ) |
|
virtualslot |
|
virtualslot |
| void JoyButton::resetAccelerationDistances | ( | ) |
|
static |
|
private |
|
private |
|
virtualslot |
|
inlineprivate |
|
inlineprivate |
|
private |
|
static |
| void JoyButton::setAccelExtraDuration | ( | double | value | ) |
|
slot |
|
slot |
Create new JoyButtonSlot with data provided and replace an existing slot in the assignment list if one exists.
| Native | virtual code being used. |
| Qt | key alias used for abstracting native virtual code. |
| Index | number in the list. |
| Mode | of the slot. |
|
slot |
Create new JoyButtonSlot with data provided and append the new slot an existing to the assignment list.
| Native | virtual code being used. |
| Qt | key alias used for abstracting native virtual code. |
| Mode | of the slot. |
|
slot |
Create new JoyButtonSlot with data provided and append the new slot an existing to the assignment list.
| Native | virtual code being used. |
| Mode | of the slot. |
|
slot |
|
signal |
|
slot |
|
signal |
|
virtual |
Reimplemented in JoySensorButton, JoyDPadButton, JoyControlStickButton, JoyAxisButton, and JoyControlStickModifierButton.
| void JoyButton::setChangeSetSelection | ( | int | index, |
| bool | updateActiveString = true |
||
| ) |
| void JoyButton::setCustomName | ( | QString | name | ) |
| void JoyButton::setCycleResetStatus | ( | bool | enabled | ) |
| void JoyButton::setCycleResetTime | ( | int | interval | ) |
|
virtual |
|
private |
|
slot |
| void JoyButton::setExtraAccelerationCurve | ( | JoyExtraAccelerationCurve | curve | ) |
| void JoyButton::setExtraAccelerationMultiplier | ( | double | value | ) |
| void JoyButton::setExtraAccelerationStatus | ( | bool | status | ) |
|
static |
Set the gamepad poll rate to be used in the application.
| Poll | rate in ms. |
| void JoyButton::setIgnoreEventState | ( | bool | ignore | ) |
| void JoyButton::setJoyNumber | ( | int | index | ) |
| void JoyButton::setMaxAccelThreshold | ( | double | value | ) |
| void JoyButton::setMinAccelThreshold | ( | double | value | ) |
| void JoyButton::setMouseCurve | ( | JoyMouseCurve | selectedCurve | ) |
|
static |
Set mouse history buffer size used for mouse smoothing.
| Mouse | history buffer size |
| void JoyButton::setMouseMode | ( | JoyMouseMovementMode | mousemode | ) |
|
static |
Set the mouse refresh rate when a mouse slot is active.
| Refresh | rate in ms. |
|
slot |
|
slot |
|
slot |
|
private |
| void JoyButton::setSpringDeadCircleMultiplier | ( | int | value | ) |
|
slot |
|
static |
|
slot |
|
slot |
| void JoyButton::setStartAccelMultiplier | ( | double | value | ) |
|
static |
|
slot |
|
slot |
Set the turbo mode that the button should use.
| Mode | that should be used |
Reimplemented in JoyControlStickButton, JoyAxisButton, and JoyControlStickModifierButton.
| void JoyButton::setUpdateInitAccel | ( | bool | state | ) |
|
slot |
Reimplemented in JoyAxisButton.
|
static |
Set the weight modifier to use for mouse smoothing.
| Weight | modifier in the range of 0.0 - 1.0. |
|
slot |
| void JoyButton::setWhileHeldStatus | ( | bool | status | ) |
|
static |
|
signal |
|
privateslot |
|
private |
|
private |
|
inlineprivate |
|
signal |
|
signal |
|
protectedvirtualslot |
|
signal |
|
inlineprivate |
|
private |
|
private |
|
inlineprivate |
|
protected |
|
privateslot |
|
privateslot |
|
protectedvirtualslot |
|
protectedvirtualslot |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
staticprotected |
|
private |
|
private |
|
private |
|
private |
|
private |
|
protected |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
protected |
|
protected |
|
protected |
|
staticprotected |
|
staticprotected |
|
private |
|
private |
|
private |
|
private |
|
protected |
|
static |
|
static |
|
static |
|
static |
|
static |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
protected |
|
private |
|
protected |
|
protected |
|
private |
|
protected |
|
private |
|
private |
|
private |
|
staticprotected |
|
protected |
|
private |
|
private |
|
protected |
|
protected |
|
private |
|
private |
|
private |
|
protected |
|
private |
|
protected |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
staticprotected |
|
private |
|
staticprotected |
|
private |
|
private |
|
protected |
|
protected |
|
protected |
|
protected |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
staticprotected |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
protected |
|
protected |
|
private |
|
private |
|
protected |
|
private |
|
private |
|
staticprotected |
|
staticprotected |
|
private |
|
private |
|
staticprivate |
|
protected |
|
staticprivate |
|
private |
|
staticprotected |
|
private |
|
protected |
|
protected |
|
protected |
|
private |
|
private |
|
private |
|
private |
|
protected |
|
protected |
|
protected |
|
protected |
|
private |
1.8.17