AntiMicroX
Public Slots | Signals | Public Member Functions | Protected Member Functions | Private Slots | Private Member Functions | Private Attributes
SDLEventReader Class Reference

#include <sdleventreader.h>

Inheritance diagram for SDLEventReader:
[legend]
Collaboration diagram for SDLEventReader:
[legend]

Public Slots

void performWork ()
 
void stop ()
 
void refresh ()
 
void updatePollRate (int tempPollRate)
 
void resetJoystickMap ()
 
void quit ()
 
void closeDevices ()
 
void haltServices ()
 Method to block activity on the SDLEventReader object and its thread event loop. More...
 

Signals

void eventRaised ()
 
void finished ()
 
void sdlStarted ()
 
void sdlClosed ()
 

Public Member Functions

 SDLEventReader (QMap< SDL_JoystickID, InputDevice * > *joysticks, AntiMicroSettings *settings, QObject *parent=nullptr)
 
 ~SDLEventReader ()
 
bool isSDLOpen ()
 
QMap< SDL_JoystickID, InputDevice * > * getJoysticks () const
 
AntiMicroSettingsgetSettings () const
 
const QTimer & getPollRateTimer ()
 

Protected Member Functions

void initSDL ()
 
void closeSDL ()
 
void clearEvents ()
 
int eventStatus ()
 

Private Slots

void secondaryRefresh ()
 

Private Member Functions

void loadSdlMappingsFromDatabase ()
 Loading additional gamepad mappings from database. More...
 

Private Attributes

QMap< SDL_JoystickID, InputDevice * > * joysticks
 
bool sdlIsOpen
 
AntiMicroSettingssettings
 
int pollRate
 
QTimer pollRateTimer
 

Constructor & Destructor Documentation

◆ SDLEventReader()

SDLEventReader::SDLEventReader ( QMap< SDL_JoystickID, InputDevice * > *  joysticks,
AntiMicroSettings settings,
QObject *  parent = nullptr 
)
explicit
Here is the call graph for this function:

◆ ~SDLEventReader()

SDLEventReader::~SDLEventReader ( )
Here is the call graph for this function:

Member Function Documentation

◆ clearEvents()

void SDLEventReader::clearEvents ( )
protected

◆ closeDevices

void SDLEventReader::closeDevices ( )
slot
Here is the call graph for this function:
Here is the caller graph for this function:

◆ closeSDL()

void SDLEventReader::closeSDL ( )
protected
Here is the call graph for this function:
Here is the caller graph for this function:

◆ eventRaised

void SDLEventReader::eventRaised ( )
signal
Here is the caller graph for this function:

◆ eventStatus()

int SDLEventReader::eventStatus ( )
protected
Here is the caller graph for this function:

◆ finished

void SDLEventReader::finished ( )
signal

◆ getJoysticks()

QMap< SDL_JoystickID, InputDevice * > * SDLEventReader::getJoysticks ( ) const

◆ getPollRateTimer()

const QTimer & SDLEventReader::getPollRateTimer ( )

◆ getSettings()

AntiMicroSettings * SDLEventReader::getSettings ( ) const

◆ haltServices

void SDLEventReader::haltServices ( )
slot

Method to block activity on the SDLEventReader object and its thread event loop.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ initSDL()

void SDLEventReader::initSDL ( )
protected
Here is the call graph for this function:
Here is the caller graph for this function:

◆ isSDLOpen()

bool SDLEventReader::isSDLOpen ( )
Here is the caller graph for this function:

◆ loadSdlMappingsFromDatabase()

void SDLEventReader::loadSdlMappingsFromDatabase ( )
private

Loading additional gamepad mappings from database.

Here is the caller graph for this function:

◆ performWork

void SDLEventReader::performWork ( )
slot
Here is the call graph for this function:
Here is the caller graph for this function:

◆ quit

void SDLEventReader::quit ( )
slot
Here is the call graph for this function:
Here is the caller graph for this function:

◆ refresh

void SDLEventReader::refresh ( )
slot
Here is the call graph for this function:

◆ resetJoystickMap

void SDLEventReader::resetJoystickMap ( )
slot

◆ sdlClosed

void SDLEventReader::sdlClosed ( )
signal
Here is the caller graph for this function:

◆ sdlStarted

void SDLEventReader::sdlStarted ( )
signal
Here is the caller graph for this function:

◆ secondaryRefresh

void SDLEventReader::secondaryRefresh ( )
privateslot
Here is the call graph for this function:
Here is the caller graph for this function:

◆ stop

void SDLEventReader::stop ( )
slot
Here is the caller graph for this function:

◆ updatePollRate

void SDLEventReader::updatePollRate ( int  tempPollRate)
slot
Here is the caller graph for this function:

Field Documentation

◆ joysticks

QMap<SDL_JoystickID, InputDevice *>* SDLEventReader::joysticks
private

◆ pollRate

int SDLEventReader::pollRate
private

◆ pollRateTimer

QTimer SDLEventReader::pollRateTimer
private

◆ sdlIsOpen

bool SDLEventReader::sdlIsOpen
private

◆ settings

AntiMicroSettings* SDLEventReader::settings
private

The documentation for this class was generated from the following files: