![]() |
AntiMicroX
|
Fetches hardware events from SDL and dispatch them to input objects like JoyAxis or JoyButton. Runs in a separate thread. More...
#include <inputdaemon.h>
Public Slots | |
| void | run () |
| void | quit () |
| void | refresh () |
| void | refreshJoystick (InputDevice *joystick) |
| void | refreshJoysticks () |
| void | startWorker () |
| void | refreshMapping (QString mapping, InputDevice *device) |
| void | removeDevice (InputDevice *device) |
| void | addInputDevice (int index, QMap< QString, int > &uniques, int &counterUniques, bool &duplicatedGamepad) |
| void | refreshIndexes () |
Signals | |
| void | joystickRefreshed (InputDevice *joystick) |
| void | joysticksRefreshed (QMap< SDL_JoystickID, InputDevice * > *joysticks) |
| void | complete (InputDevice *joystick) |
| void | complete () |
| void | deviceUpdated (int index, InputDevice *device) |
| void | deviceRemoved (SDL_JoystickID deviceID) |
| void | deviceAdded (InputDevice *device) |
Public Member Functions | |
| InputDaemon (QMap< SDL_JoystickID, InputDevice * > *joysticks, AntiMicroSettings *settings, bool graphical=true, QObject *parent=0) | |
| ~InputDaemon () | |
Protected Member Functions | |
| InputDeviceBitArrayStatus * | createOrGrabBitStatusEntry (QHash< InputDevice *, InputDeviceBitArrayStatus * > *statusHash, InputDevice *device, bool readCurrent=true) |
| QString | getJoyInfo (SDL_JoystickGUID sdlvalue) |
| QString | getJoyInfo (Uint16 sdlvalue) |
| void | firstInputPass (QQueue< SDL_Event > *sdlEventQueue) |
| Fetches events from SDL event queue, filters them and updates InputDeviceBitArrayStatus. | |
| void | secondInputPass (QQueue< SDL_Event > *sdlEventQueue) |
| Dispatches postprocessed SDL events to the input objects like JoyAxis or JoyButton and activates them at the end. | |
| void | modifyUnplugEvents (QQueue< SDL_Event > *sdlEventQueue) |
| Postprocesses fetched raw events. | |
| QBitArray | createUnplugEventBitArray (InputDevice *device) |
| Joystick * | openJoystickDevice (int index) |
| void | clearBitArrayStatusInstances () |
| void | convertMappingsToUnique (QSettings *sett, QString guidString, QString uniqueIdString) |
Private Slots | |
| void | stop () |
| void | resetActiveButtonMouseDistances () |
| void | updatePollResetRate (int tempPollRate) |
Private Member Functions | |
| QHash< SDL_JoystickID, Joystick * > & | getTrackjoysticksLocal () |
| QHash< InputDevice *, InputDeviceBitArrayStatus * > & | getReleaseEventsGeneratedLocal () |
| QHash< InputDevice *, InputDeviceBitArrayStatus * > & | getPendingEventValuesLocal () |
Fetches hardware events from SDL and dispatch them to input objects like JoyAxis or JoyButton. Runs in a separate thread.
|
explicit |
| InputDaemon::~InputDaemon | ( | ) |
|
slot |
|
protected |
|
signal |
|
signal |
|
protected |
|
protected |
|
protected |
|
signal |
|
signal |
|
signal |
Fetches events from SDL event queue, filters them and updates InputDeviceBitArrayStatus.
|
protected |
|
private |
|
private |
|
private |
|
signal |
|
signal |
Postprocesses fetched raw events.
|
slot |
|
slot |
|
slot |
|
slot |
|
slot |
|
slot |
|
slot |
|
privateslot |
|
slot |
|
slot |
|
privateslot |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |