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

#include <gamecontrollermappingdialog.h>

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

Signals

void mappingUpdate (QString mapping, InputDevice *device)
 

Public Member Functions

 GameControllerMappingDialog (InputDevice *device, AntiMicroSettings *settings, QWidget *parent=nullptr)
 
 ~GameControllerMappingDialog ()
 

Static Public Attributes

static QHash< int, QString > tempaliases = initAliases()
 
static QHash< SDL_GameControllerButton, int > buttonPlacement = initButtonPlacement()
 
static QHash< SDL_GameControllerAxis, int > axisPlacement = initAxisPlacement()
 

Protected Member Functions

void populateGameControllerBindings (GameController *controller)
 
void removeControllerMapping ()
 
void enableDeviceConnections ()
 
void disableDeviceConnections ()
 
QString generateSDLMappingString ()
 
void populateAxisDeadZoneComboBox ()
 
QString bindingString (SDL_GameControllerButtonBind bind)
 
QList< QVariant > bindingValues (SDL_GameControllerButtonBind bind)
 

Private Slots

void buttonAssign (int buttonindex)
 
void axisAssign (int axis, int value)
 
void dpadAssign (int dpad, int buttonindex)
 
void buttonRelease (int buttonindex)
 TODO: Possibly remove. This was used for decrementing a reference count. More...
 
void axisRelease (int axis, int value)
 TODO: Possibly remove. This was used for decrementing a reference count. More...
 
void dpadRelease (int dpad, int buttonindex)
 TODO: Possibly remove. This was used for decrementing a reference count. More...
 
void saveChanges ()
 
void discardMapping (QAbstractButton *button)
 
void enableButtonEvents (int code)
 
void obliterate ()
 
void changeButtonDisplay ()
 
void changeAxisDeadZone (int index)
 
void updateLastAxisLineEdit (JoyAxis *tempAxis, int value)
 
void updateLastAxisLineEditRaw (int index, int value)
 

Private Member Functions

GameControllerMappingDialogHelpergetHelperLocal ()
 
QList< int > & getEventTriggerAxesLocal ()
 

Private Attributes

Ui::GameControllerMappingDialog * ui
 
InputDevicedevice
 
AntiMicroSettingssettings
 
int buttonGrabs
 
QList< int > eventTriggerAxes
 
GameControllerMappingDialogHelper helper
 
int currentDeadZoneValue
 
bool usingGameController
 

Constructor & Destructor Documentation

◆ GameControllerMappingDialog()

GameControllerMappingDialog::GameControllerMappingDialog ( InputDevice device,
AntiMicroSettings settings,
QWidget *  parent = nullptr 
)
explicit
Here is the call graph for this function:

◆ ~GameControllerMappingDialog()

GameControllerMappingDialog::~GameControllerMappingDialog ( )

Member Function Documentation

◆ axisAssign

void GameControllerMappingDialog::axisAssign ( int  axis,
int  value 
)
privateslot
Here is the call graph for this function:
Here is the caller graph for this function:

◆ axisRelease

void GameControllerMappingDialog::axisRelease ( int  axis,
int  value 
)
privateslot

TODO: Possibly remove. This was used for decrementing a reference count.

Parameters
axis
value
Here is the caller graph for this function:

◆ bindingString()

QString GameControllerMappingDialog::bindingString ( SDL_GameControllerButtonBind  bind)
protected
Here is the caller graph for this function:

◆ bindingValues()

QList< QVariant > GameControllerMappingDialog::bindingValues ( SDL_GameControllerButtonBind  bind)
protected
Here is the caller graph for this function:

◆ buttonAssign

void GameControllerMappingDialog::buttonAssign ( int  buttonindex)
privateslot
Here is the call graph for this function:
Here is the caller graph for this function:

◆ buttonRelease

void GameControllerMappingDialog::buttonRelease ( int  buttonindex)
privateslot

TODO: Possibly remove. This was used for decrementing a reference count.

Parameters
buttonindex
Here is the caller graph for this function:

◆ changeAxisDeadZone

void GameControllerMappingDialog::changeAxisDeadZone ( int  index)
privateslot
Here is the caller graph for this function:

◆ changeButtonDisplay

void GameControllerMappingDialog::changeButtonDisplay ( )
privateslot
Here is the caller graph for this function:

◆ disableDeviceConnections()

void GameControllerMappingDialog::disableDeviceConnections ( )
protected
Here is the caller graph for this function:

◆ discardMapping

void GameControllerMappingDialog::discardMapping ( QAbstractButton *  button)
privateslot
Here is the call graph for this function:
Here is the caller graph for this function:

◆ dpadAssign

void GameControllerMappingDialog::dpadAssign ( int  dpad,
int  buttonindex 
)
privateslot
Here is the call graph for this function:
Here is the caller graph for this function:

◆ dpadRelease

void GameControllerMappingDialog::dpadRelease ( int  dpad,
int  buttonindex 
)
privateslot

TODO: Possibly remove. This was used for decrementing a reference count.

Parameters
dpad
buttonindex
Here is the caller graph for this function:

◆ enableButtonEvents

void GameControllerMappingDialog::enableButtonEvents ( int  code)
privateslot
Here is the caller graph for this function:

◆ enableDeviceConnections()

void GameControllerMappingDialog::enableDeviceConnections ( )
protected
Here is the call graph for this function:
Here is the caller graph for this function:

◆ generateSDLMappingString()

QString GameControllerMappingDialog::generateSDLMappingString ( )
protected
Here is the call graph for this function:
Here is the caller graph for this function:

◆ getEventTriggerAxesLocal()

QList< int > & GameControllerMappingDialog::getEventTriggerAxesLocal ( )
private
Here is the caller graph for this function:

◆ getHelperLocal()

GameControllerMappingDialogHelper & GameControllerMappingDialog::getHelperLocal ( )
private
Here is the caller graph for this function:

◆ mappingUpdate

void GameControllerMappingDialog::mappingUpdate ( QString  mapping,
InputDevice device 
)
signal
Here is the caller graph for this function:

◆ obliterate

void GameControllerMappingDialog::obliterate ( )
privateslot
Here is the call graph for this function:
Here is the caller graph for this function:

◆ populateAxisDeadZoneComboBox()

void GameControllerMappingDialog::populateAxisDeadZoneComboBox ( )
protected
Here is the caller graph for this function:

◆ populateGameControllerBindings()

void GameControllerMappingDialog::populateGameControllerBindings ( GameController controller)
protected
Here is the call graph for this function:
Here is the caller graph for this function:

◆ removeControllerMapping()

void GameControllerMappingDialog::removeControllerMapping ( )
protected
Here is the call graph for this function:
Here is the caller graph for this function:

◆ saveChanges

void GameControllerMappingDialog::saveChanges ( )
privateslot
Here is the call graph for this function:
Here is the caller graph for this function:

◆ updateLastAxisLineEdit

void GameControllerMappingDialog::updateLastAxisLineEdit ( JoyAxis tempAxis,
int  value 
)
privateslot
Here is the call graph for this function:

◆ updateLastAxisLineEditRaw

void GameControllerMappingDialog::updateLastAxisLineEditRaw ( int  index,
int  value 
)
privateslot
Here is the caller graph for this function:

Field Documentation

◆ axisPlacement

QHash< SDL_GameControllerAxis, int > GameControllerMappingDialog::axisPlacement = initAxisPlacement()
static

◆ buttonGrabs

int GameControllerMappingDialog::buttonGrabs
private

◆ buttonPlacement

QHash< SDL_GameControllerButton, int > GameControllerMappingDialog::buttonPlacement = initButtonPlacement()
static

◆ currentDeadZoneValue

int GameControllerMappingDialog::currentDeadZoneValue
private

◆ device

InputDevice* GameControllerMappingDialog::device
private

◆ eventTriggerAxes

QList<int> GameControllerMappingDialog::eventTriggerAxes
private

◆ helper

GameControllerMappingDialogHelper GameControllerMappingDialog::helper
private

◆ settings

AntiMicroSettings* GameControllerMappingDialog::settings
private

◆ tempaliases

QHash< int, QString > GameControllerMappingDialog::tempaliases = initAliases()
static

◆ ui

Ui::GameControllerMappingDialog* GameControllerMappingDialog::ui
private

◆ usingGameController

bool GameControllerMappingDialog::usingGameController
private

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