![]() |
AntiMicroX
|
Some helper methods which run in the IO thread and are called from the GUI thread. More...
#include <joysensoriothreadhelper.h>
Public Slots | |
| void | setFromPendingSlots () |
| Applies pending slot values to the buttons Should be called via QMetaObject::invokeMethod. | |
| void | clearButtonsSlotsEventReset () |
| Calls JoyButton::clearSlotEventReset on all JoyButtons of the underlying sensor. Should be called via QMetaObject::invokeMethod. | |
Public Member Functions | |
| JoySensorIoThreadHelper (JoySensor *sensor, QObject *parent=nullptr) | |
| void | setPendingSlots (QHash< JoySensorDirection, JoyButtonSlot * > *tempSlots) |
| Sets pending slot values The values are applied to the buttons by calling setFromPendingSlots. | |
| void | clearPendingSlots () |
| Clears pending slot values. | |
Private Attributes | |
| JoySensor * | m_sensor |
| QHash< JoySensorDirection, JoyButtonSlot * > | m_pending_slots |
Some helper methods which run in the IO thread and are called from the GUI thread.
|
explicit |
|
slot |
Calls JoyButton::clearSlotEventReset on all JoyButtons of the underlying sensor. Should be called via QMetaObject::invokeMethod.
| void JoySensorIoThreadHelper::clearPendingSlots | ( | ) |
Clears pending slot values.
|
slot |
Applies pending slot values to the buttons Should be called via QMetaObject::invokeMethod.
| void JoySensorIoThreadHelper::setPendingSlots | ( | QHash< JoySensorDirection, JoyButtonSlot * > * | tempSlots | ) |
Sets pending slot values The values are applied to the buttons by calling setFromPendingSlots.
| [in] | tempSlots | QHash of new pending slot values. Buttons that are absent from the hash will be left unchanged. |
|
private |
|
private |