 |
AntiMicroX
|
Go to the documentation of this file.
19 #ifndef GAMECONTROLLERTRIGGER_H
20 #define GAMECONTROLLERTRIGGER_H
25 class QXmlStreamReader;
26 class QXmlStreamWriter;
37 virtual QString
getPartialName(
bool forceFullFormat,
bool displayNames);
51 virtual void reset(
int index);
59 #endif // GAMECONTROLLERTRIGGER_H
JoyAxisButton * paxisbutton
Definition: joyaxis.h:169
void setThrottle(int value)
Set throttle value for axis.
Definition: joyaxis.cpp:388
virtual void setHapticTriggerMode(HapticTriggerModePs5 mode) override
Changes the haptic feedback effect mode.
Definition: gamecontrollertrigger.cpp:185
static const int RIGIDGRADIENTSTRENGTH
Definition: globalvariables.h:132
virtual int getDefaultMaxZone()
Definition: gamecontrollertrigger.cpp:130
JoyAxisButton * activeButton
Definition: joyaxis.h:191
void setCurrentRawValue(int value)
Definition: joyaxis.cpp:581
Represents single axis of of joystick (or other input)
Definition: joyaxis.h:40
int getRealJoyIndex()
Definition: joyaxis.cpp:251
JoyAxisButton * naxisbutton
Definition: joyaxis.h:170
@ HAPTIC_TRIGGER_CLICK
Definition: haptictriggermodeps5.h:25
int pendingValue
Definition: joyaxis.h:184
int throttle
Definition: joyaxis.h:175
A set of mapped events which can by switched by a controller event. Contains controller input objects...
Definition: setjoystick.h:39
bool isActive
Definition: joyaxis.h:186
bool pendingEvent
Definition: joyaxis.h:187
int calculateThrottledValue(int value)
Definition: joyaxis.cpp:257
int currentRawValue
Definition: joyaxis.h:178
static const int AXISMAXZONE
Definition: globalvariables.h:168
static const int VIBRATIONSTRENGTH
Definition: globalvariables.h:133
virtual ThrottleTypes getDefaultThrottle()
Definition: gamecontrollertrigger.cpp:132
QString axisName
Definition: joyaxis.h:172
bool eventActive
Definition: joyaxis.h:189
int currentThrottledValue
Definition: joyaxis.h:179
int currentThrottledDeadValue
Definition: joyaxis.h:180
int lastKnownRawValue
Definition: joyaxis.h:183
Definition: gamecontrollertrigger.h:29
bool pendingIgnoreSets
Definition: joyaxis.h:188
static const int AXISDEADZONE
Definition: globalvariables.h:167
virtual void reset()
Definition: gamecontrollertrigger.cpp:61
@ HAPTIC_TRIGGER_RIGID
Definition: haptictriggermodeps5.h:26
@ HAPTIC_TRIGGER_RIGID_GRADIENT
Definition: haptictriggermodeps5.h:27
@ PositiveHalfThrottle
Definition: joyaxis.h:54
static const int RANGE
Definition: globalvariables.h:134
virtual HapticTriggerPs5 * getHapticTrigger() const override
Recalculates haptic trigger effect positions, e.g. after dead zone change, and returns the current Ha...
Definition: gamecontrollertrigger.cpp:148
static const QString xmlName
Definition: globalvariables.h:170
static const int AXISMAX
Definition: globalvariables.h:118
@ HAPTIC_TRIGGER_NONE
Definition: haptictriggermodeps5.h:24
static const int RIGIDSTRENGTH
Definition: globalvariables.h:131
HapticTriggerModePs5
Enum of the supported haptic trigger effect for a PS5 controller.
Definition: haptictriggermodeps5.h:22
void correctJoystickThrottle()
Definition: gamecontrollertrigger.cpp:117
virtual int getDefaultDeadZone()
Definition: gamecontrollertrigger.cpp:128
void adjustRange()
Definition: joyaxis.cpp:465
HapticTriggerPs5 * m_haptic_trigger
Definition: gamecontrollertrigger.h:56
static const int FREQUENCY
Definition: globalvariables.h:135
QString defaultAxisName
Definition: joyaxis.h:173
InputDevice * getInputDevice() const
Definition: setjoystick.cpp:931
GameControllerTrigger(int index, int originset, SetJoystick *parentSet, QObject *parent=nullptr)
Definition: gamecontrollertrigger.cpp:39
ThrottleTypes
Definition: joyaxis.h:48
virtual QString getPartialName(bool forceFullFormat, bool displayNames)
Definition: gamecontrollertrigger.cpp:88
bool set_effect(int strength, int start, int end, int frequency=0)
Changes the haptic feedback effect.
Definition: haptictriggerps5.cpp:265
static const int CLICKSTRENGTH
Definition: globalvariables.h:130
HapticTriggerModePs5 get_mode() const
Returns the current haptic feedback effect mode.
Definition: haptictriggerps5.cpp:243
virtual QString getXmlName()
Definition: gamecontrollertrigger.cpp:86
static const ThrottleTypes DEFAULTTHROTTLE
Definition: gamecontrollertrigger.h:43
int lastKnownThottledValue
Definition: joyaxis.h:182
it is up to the author donor to decide if he or she is willing to distribute software through any other system and a licensee cannot impose that choice This section is intended to make thoroughly clear what is believed to be a consequence of the rest of this License If the distribution and or use of the Library is restricted in certain countries either by patents or by copyrighted the original copyright holder who places the Library under this License may add an geographical distribution limitation excluding those so that distribution is permitted only in or among countries not thus excluded In such this License incorporates the limitation as if written in the body of this License The Free Software Foundation may publish revised and or new versions of the Lesser General Public License from time to time Such new versions will be similar in spirit to the present but may differ in detail to address new problems or concerns Each version is given a distinguishing version number If the Library specifies a version number of this License which applies to it and any later you have the option of following the terms and conditions either of that version or of any later version published by the Free Software Foundation If the Library does not specify a license version number
Definition: lgpl-2.1.txt:423
int deadZone
Definition: joyaxis.h:176
int maxZoneValue
Definition: joyaxis.h:177
bool set_effect_mode(HapticTriggerModePs5 mode)
Changes the haptic feedback mode to the given type.
Definition: haptictriggerps5.cpp:250
virtual bool hasHapticTrigger() const override
Checks if the trigger supports haptic feedback.
Definition: gamecontrollertrigger.cpp:141
@ HAPTIC_TRIGGER_VIBRATION
Definition: haptictriggermodeps5.h:28
Represents a single haptic trigger effect on a PS5 controller. See https://gist.github....
Definition: haptictriggerps5.h:33
void hapticTriggerChanged()
int m_index
Definition: joyaxis.h:181