|
| void | reset () |
| |
| void | transferReset () |
| | Obtain current joystick element values, create new SetJoystick objects, and then transfer most recent joystick element values to new current set.
|
| |
| void | reInitButtons () |
| |
| void | resetButtonDownCount () |
| |
| void | setActiveSetNumber (int index) |
| |
| void | changeSetButtonAssociation (int button_index, int originset, int newset, int mode) |
| |
| void | changeSetAxisButtonAssociation (int button_index, int axis_index, int originset, int newset, int mode) |
| |
| void | changeSetStickButtonAssociation (int button_index, int stick_index, int originset, int newset, int mode) |
| |
| void | changeSetSensorButtonAssociation (JoySensorDirection direction, JoySensorType type, int originset, int newset, int mode) |
| | Creates reverse set change button mapping for toggle and while-hold set change mappings.
|
| |
| void | changeSetDPadButtonAssociation (int button_index, int dpad_index, int originset, int newset, int mode) |
| |
| void | changeSetVDPadButtonAssociation (int button_index, int dpad_index, int originset, int newset, int mode) |
| |
| void | setDeviceKeyPressTime (int newPressTime) |
| |
| void | profileEdited () |
| |
| void | setProfileName (QString value) |
| |
| void | haltServices () |
| |
| void | finalRemoval () |
| |
| virtual void | buttonClickEvent (int buttonindex) |
| |
| virtual void | buttonReleaseEvent (int buttonindex) |
| |
| virtual void | dpadButtonClickEvent (int buttonindex) |
| |
| virtual void | dpadButtonReleaseEvent (int buttonindex) |
| |
| void | establishPropertyUpdatedConnection () |
| |
| void | disconnectPropertyUpdatedConnection () |
| |
|
| | InputDevice (SDL_Joystick *joystick, int deviceIndex, AntiMicroSettings *settings, QObject *parent) |
| |
| virtual | ~InputDevice () |
| |
| virtual int | getNumberButtons () |
| |
| virtual int | getNumberAxes () |
| |
| virtual int | getNumberHats () |
| |
| virtual int | getNumberSticks () |
| |
| virtual bool | hasSensor (JoySensorType type) |
| | Checks if this input device has a sensor of given type.
|
| |
| virtual int | getNumberVDPads () |
| |
| int | getJoyNumber () |
| |
| int | getRealJoyNumber () |
| |
| int | getActiveSetNumber () |
| |
| QString | getActiveSetName () |
| |
| SetJoystick * | getActiveSetJoystick () |
| |
| SetJoystick * | getSetJoystick (int index) |
| |
| void | removeControlStick (int index) |
| |
| bool | isActive () |
| |
| int | getButtonDownCount () |
| |
| virtual QString | getXmlName () const =0 |
| |
| virtual QString | getName ()=0 |
| |
| virtual QString | getSDLName ()=0 |
| |
| virtual QString | getDescription () |
| |
| virtual QString | getGUIDString () const =0 |
| |
| virtual QString | getUniqueIDString () const =0 |
| |
| virtual QString | getVendorString () const =0 |
| |
| virtual QString | getSerialString () const =0 |
| |
| virtual QString | getProductIDString () const =0 |
| |
| virtual QString | getProductVersion () const =0 |
| |
| virtual QString | getRawGUIDString () const |
| |
| virtual QString | getRawVendorString () const |
| |
| virtual QString | getRawProductIDString () const |
| |
| virtual QString | getRawProductVersion () const |
| |
| virtual QString | getRawUniqueIDString () const |
| |
| virtual void | setCounterUniques (int counter)=0 |
| |
| virtual QString | getStringIdentifier () |
| |
| virtual void | closeSDLDevice ()=0 |
| |
| virtual SDL_JoystickID | getSDLJoystickID ()=0 |
| |
| QString | getSDLPlatform () |
| |
| virtual bool | isGameController () |
| | Check if device is using the SDL Game Controller API.
|
| |
| virtual bool | isKnownController () |
| |
| void | setButtonName (int index, QString tempName) |
| |
| void | setAxisButtonName (int axisIndex, int buttonIndex, QString tempName) |
| |
| void | setStickButtonName (int stickIndex, int buttonIndex, QString tempName) |
| |
| void | setSensorButtonName (JoySensorType type, JoySensorDirection direction, QString tempName) |
| | Sets the name of a mapped sensor button in all sets Used during XML loading.
|
| |
| void | setDPadButtonName (int dpadIndex, int buttonIndex, QString tempName) |
| |
| void | setVDPadButtonName (int vdpadIndex, int buttonIndex, QString tempName) |
| |
| void | setAxisName (int axisIndex, QString tempName) |
| |
| void | setStickName (int stickIndex, QString tempName) |
| |
| void | setSensorName (JoySensorType type, QString tempName) |
| | Sets the name of a sensor in all sets Used during XML loading.
|
| |
| void | setDPadName (int dpadIndex, QString tempName) |
| |
| void | setVDPadName (int vdpadIndex, QString tempName) |
| |
| virtual int | getNumberRawButtons ()=0 |
| |
| virtual int | getNumberRawAxes ()=0 |
| |
| virtual int | getNumberRawHats ()=0 |
| |
| virtual double | getRawSensorRate (JoySensorType type)=0 |
| |
| virtual bool | hasRawSensor (JoySensorType type)=0 |
| |
| int | getDeviceKeyPressTime () |
| |
| void | setIndex (int index) |
| |
| bool | isDeviceEdited () |
| |
| void | revertProfileEdited () |
| |
| void | setKeyRepeatStatus (bool enabled) |
| |
| void | setKeyRepeatDelay (int delay) |
| |
| void | setKeyRepeatRate (int rate) |
| |
| bool | isKeyRepeatEnabled () |
| |
| int | getKeyRepeatDelay () |
| |
| int | getKeyRepeatRate () |
| |
| QString | getProfileName () |
| |
| bool | hasCalibrationThrottle (int axisNum) |
| |
| JoyAxis::ThrottleTypes | getCalibrationThrottle (int axisNum) |
| |
| void | setCalibrationThrottle (int axisNum, JoyAxis::ThrottleTypes throttle) |
| |
| void | setCalibrationStatus (int axisNum, JoyAxis::ThrottleTypes throttle) |
| |
| void | removeCalibrationStatus (int axisNum) |
| |
| void | sendLoadProfileRequest (QString location) |
| |
| AntiMicroSettings * | getSettings () |
| |
| void | activatePossiblePendingEvents () |
| |
| void | activatePossibleControlStickEvents () |
| |
| void | activatePossibleAxisEvents () |
| |
| void | activatePossibleSensorEvents () |
| |
| void | activatePossibleDPadEvents () |
| |
| void | activatePossibleVDPadEvents () |
| |
| void | activatePossibleButtonEvents () |
| |
| void | convertToUniqueMappSett (QSettings *sett, QString gUIDmappGroupSett, QString uniqueIDGroupSett) |
| |
| bool | isEmptyUniqueID (QString tempUniqueID) |
| | Check if the GUID passed is considered empty.
|
| |
| bool | isRelevantUniqueID (QString tempUniqueID) |
| | Check if GUID passed matches the expected GUID for a device. Needed for xinput GUID abstraction.
|
| |
| void | setRawAxisDeadZone (int deadZone) |
| |
| int | getRawAxisDeadZone () |
| |
| void | rawAxisEvent (int index, int value) |
| |
| bool | elementsHaveNames () |
| |
| QMap< int, SetJoystick * > & | getJoystick_sets () |
| |
| SDL_Joystick * | getJoyHandle () const |
| |
| virtual SDL_GameControllerType | getControllerType () const |
| | Returns the current controller model. For non gamecontroller devices it always returns UNKNOWN.
|
| |
| InputDeviceCalibration * | getCalibrationBackend () |
| | Returns a pointer to the internal calibration storage backend.
|
| |
| void | updateStickCalibration (int index, double offsetX, double gainX, double offsetY, double gainY) |
| | Updates stored calibration for this controller and applies calibration to the specified stick in all sets See JoyControlStick::setCalibration.
|
| |
| void | applyStickCalibration (int index, double offsetX, double gainX, double offsetY, double gainY) |
| | Applies calibration to the specified stick in all sets See JoyControlStick::setCalibration.
|
| |
| void | updateAccelerometerCalibration (double offsetX, double offsetY, double offsetZ) |
| | Applies calibration to the specified accelerometer in all sets See JoySensor::setCalibration.
|
| |
| void | applyAccelerometerCalibration (double offsetX, double offsetY, double offsetZ) |
| | Applies calibration to the specified accelerometer in all sets See JoySensor::setCalibration.
|
| |
| void | updateGyroscopeCalibration (double offsetX, double offsetY, double offsetZ) |
| | Updates stored calibration for this controller and applies calibration to the specified gyroscope in all sets See JoySensor::setCalibration.
|
| |
| void | applyGyroscopeCalibration (double offsetX, double offsetY, double offsetZ) |
| | Applies calibration to the specified gyroscope in all sets See JoySensor::setCalibration.
|
| |
|
| void | propogateSetChange (int index) |
| |
| void | propogateSetAxisThrottleChange (int index, int originset) |
| |
| void | buttonDownEvent (int setindex, int buttonindex) |
| |
| void | buttonUpEvent (int setindex, int buttonindex) |
| |
| virtual void | axisActivatedEvent (int setindex, int axisindex, int value) |
| |
| virtual void | axisReleasedEvent (int setindex, int axisindex, int value) |
| |
| virtual void | axisButtonDownEvent (int setindex, int axisindex, int buttonindex) |
| |
| virtual void | axisButtonUpEvent (int setindex, int axisindex, int buttonindex) |
| |
| virtual void | dpadButtonDownEvent (int setindex, int dpadindex, int buttonindex) |
| |
| virtual void | dpadButtonUpEvent (int setindex, int dpadindex, int buttonindex) |
| |
| virtual void | stickButtonDownEvent (int setindex, int stickindex, int buttonindex) |
| |
| virtual void | stickButtonUpEvent (int setindex, int stickindex, int buttonindex) |
| |
| virtual void | sensorButtonDownEvent (int setindex, JoySensorType type, JoySensorDirection direction) |
| |
| virtual void | sensorButtonUpEvent (int setindex, JoySensorType type, JoySensorDirection direction) |
| |
| void | updateSetButtonNames (int index) |
| |
| void | updateSetAxisButtonNames (int axisIndex, int buttonIndex) |
| |
| void | updateSetStickButtonNames (int stickIndex, int buttonIndex) |
| |
| void | updateSetSensorButtonNames (JoySensorType type, JoySensorDirection direction) |
| | Rename mapped sensor button in all sets to the name in the active set.
|
| |
| void | updateSetDPadButtonNames (int dpadIndex, int buttonIndex) |
| |
| void | updateSetVDPadButtonNames (int vdpadIndex, int buttonIndex) |
| |
| void | updateSetAxisNames (int axisIndex) |
| |
| void | updateSetStickNames (int stickIndex) |
| |
| void | updateSetSensorNames (JoySensorType type) |
| | Rename sensor in all sets to the name in the current set.
|
| |
| void | updateSetDPadNames (int dpadIndex) |
| |
| void | updateSetVDPadNames (int vdpadIndex) |
| |
Abstract class representing a hardware input device, e.g a joystick or controller.
Two concrete implementations are Joystick and class GameController difference between two of them are described in listed sources
- See also
- https://discourse.libsdl.org/t/difference-between-joysticks-and-game-controllers/24028/2
-
https://stackoverflow.com/a/50026410/11747535