 |
AntiMicroX
|
Go to the documentation of this file.
37 void setPendingSlots(QHash<JoySensorDirection, JoyButtonSlot *> *tempSlots);
JoySensor * m_sensor
Definition: joysensoriothreadhelper.h:45
void setFromPendingSlots()
Applies pending slot values to the buttons Should be called via QMetaObject::invokeMethod.
Definition: joysensoriothreadhelper.cpp:59
JoySensorIoThreadHelper(JoySensor *sensor, QObject *parent=nullptr)
Definition: joysensoriothreadhelper.cpp:26
void clearPendingSlots()
Clears pending slot values.
Definition: joysensoriothreadhelper.cpp:53
void clearButtonsSlotsEventReset()
Calls JoyButton::clearSlotEventReset on all JoyButtons of the underlying sensor. Should be called via...
Definition: joysensoriothreadhelper.cpp:85
JoySensorDirection
A bitfield style enum which encodes all possible three dimensional sensor directions....
Definition: joysensordirection.h:27
Represents one sensor in a SetJoystick and its connections to other parts of the application....
Definition: joysensor.h:39
QHash< JoySensorDirection, JoyButtonSlot * > m_pending_slots
Definition: joysensoriothreadhelper.h:46
JoySensorButton * getDirectionButton(JoySensorDirection direction)
Get a pointer to the sensor direction button for the desired direction.
Definition: joysensor.cpp:550
Some helper methods which run in the IO thread and are called from the GUI thread.
Definition: joysensoriothreadhelper.h:31
void setPendingSlots(QHash< JoySensorDirection, JoyButtonSlot * > *tempSlots)
Sets pending slot values The values are applied to the buttons by calling setFromPendingSlots.
Definition: joysensoriothreadhelper.cpp:39
QHash< JoySensorDirection, JoySensorButton * > * getButtons()
Returns a QHash which maps the SensorDirection to the corresponding JoySensorButton.
Definition: joysensor.cpp:541