Fetches hardware events from SDL and dispatch them to input objects like JoyAxis or JoyButton. Runs in a separate thread.
More...
#include <inputdaemon.h>
Fetches hardware events from SDL and dispatch them to input objects like JoyAxis or JoyButton. Runs in a separate thread.
◆ InputDaemon()
InputDaemon::InputDaemon |
( |
QMap< SDL_JoystickID, InputDevice * > * |
joysticks, |
|
|
AntiMicroSettings * |
settings, |
|
|
bool |
graphical = true , |
|
|
QObject * |
parent = 0 |
|
) |
| |
|
explicit |
◆ ~InputDaemon()
InputDaemon::~InputDaemon |
( |
| ) |
|
◆ addInputDevice
void InputDaemon::addInputDevice |
( |
int |
index, |
|
|
QMap< QString, int > & |
uniques, |
|
|
int & |
counterUniques, |
|
|
bool & |
duplicatedGamepad |
|
) |
| |
|
slot |
◆ clearBitArrayStatusInstances()
void InputDaemon::clearBitArrayStatusInstances |
( |
| ) |
|
|
protected |
◆ complete [1/2]
void InputDaemon::complete |
( |
| ) |
|
|
signal |
◆ complete [2/2]
◆ convertMappingsToUnique()
void InputDaemon::convertMappingsToUnique |
( |
QSettings * |
sett, |
|
|
QString |
guidString, |
|
|
QString |
uniqueIdString |
|
) |
| |
|
protected |
◆ createOrGrabBitStatusEntry()
◆ createUnplugEventBitArray()
QBitArray InputDaemon::createUnplugEventBitArray |
( |
InputDevice * |
device | ) |
|
|
protected |
◆ deviceAdded
◆ deviceRemoved
void InputDaemon::deviceRemoved |
( |
SDL_JoystickID |
deviceID | ) |
|
|
signal |
◆ deviceUpdated
◆ firstInputPass()
void InputDaemon::firstInputPass |
( |
QQueue< SDL_Event > * |
sdlEventQueue | ) |
|
|
protected |
◆ getJoyInfo() [1/2]
QString InputDaemon::getJoyInfo |
( |
SDL_JoystickGUID |
sdlvalue | ) |
|
|
protected |
◆ getJoyInfo() [2/2]
QString InputDaemon::getJoyInfo |
( |
Uint16 |
sdlvalue | ) |
|
|
protected |
◆ getPendingEventValuesLocal()
◆ getReleaseEventsGeneratedLocal()
◆ getTrackjoysticksLocal()
QHash< SDL_JoystickID, Joystick * > & InputDaemon::getTrackjoysticksLocal |
( |
| ) |
|
|
private |
◆ joystickRefreshed
◆ joysticksRefreshed
void InputDaemon::joysticksRefreshed |
( |
QMap< SDL_JoystickID, InputDevice * > * |
joysticks | ) |
|
|
signal |
◆ modifyUnplugEvents()
void InputDaemon::modifyUnplugEvents |
( |
QQueue< SDL_Event > * |
sdlEventQueue | ) |
|
|
protected |
Postprocesses fetched raw events.
◆ openJoystickDevice()
Joystick * InputDaemon::openJoystickDevice |
( |
int |
index | ) |
|
|
protected |
◆ quit
void InputDaemon::quit |
( |
| ) |
|
|
slot |
◆ refresh
void InputDaemon::refresh |
( |
| ) |
|
|
slot |
◆ refreshIndexes
void InputDaemon::refreshIndexes |
( |
| ) |
|
|
slot |
◆ refreshJoystick
◆ refreshJoysticks
void InputDaemon::refreshJoysticks |
( |
| ) |
|
|
slot |
◆ refreshMapping
◆ removeDevice
◆ resetActiveButtonMouseDistances
void InputDaemon::resetActiveButtonMouseDistances |
( |
| ) |
|
|
privateslot |
◆ run
void InputDaemon::run |
( |
| ) |
|
|
slot |
◆ secondInputPass()
void InputDaemon::secondInputPass |
( |
QQueue< SDL_Event > * |
sdlEventQueue | ) |
|
|
protected |
Dispatches postprocessed SDL events to the input objects like JoyAxis or JoyButton and activates them at the end.
◆ startWorker
void InputDaemon::startWorker |
( |
| ) |
|
|
slot |
◆ stop
void InputDaemon::stop |
( |
| ) |
|
|
privateslot |
◆ updatePollResetRate
void InputDaemon::updatePollResetRate |
( |
int |
tempPollRate | ) |
|
|
privateslot |
◆ eventWorker
◆ m_graphical
bool InputDaemon::m_graphical |
|
private |
◆ m_joysticks
QMap<SDL_JoystickID, InputDevice *>* InputDaemon::m_joysticks |
|
private |
◆ m_settings
◆ pendingEventValues
◆ pollResetTimer
QTimer InputDaemon::pollResetTimer |
|
private |
◆ releaseEventsGenerated
◆ sdlWorkerThread
QThread* InputDaemon::sdlWorkerThread |
|
private |
◆ stopped
bool InputDaemon::stopped |
|
private |
◆ trackcontrollers
◆ trackjoysticks
QHash<SDL_JoystickID, Joystick *> InputDaemon::trackjoysticks |
|
private |
The documentation for this class was generated from the following files: