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

#include <joydpad.h>

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

Public Types

enum  JoyMode { StandardMode = 0, EightWayMode, FourWayCardinal, FourWayDiagonal }
 

Public Slots

void setDPadName (QString tempName)
 
void setButtonsSpringRelativeStatus (bool value)
 
void setDPadDelay (int value)
 
void setButtonsEasingDuration (double value)
 
void establishPropertyUpdatedConnection ()
 
void disconnectPropertyUpdatedConnection ()
 

Signals

void active (int value)
 
void released (int value)
 
void dpadNameChanged ()
 
void dpadDelayChanged (int value)
 
void joyModeChanged ()
 
void propertyUpdated ()
 

Public Member Functions

 JoyDPad (int index, int originset, SetJoystick *parentSet, QObject *parent)
 
JoyDPadButtongetJoyButton (int index_local)
 
QHash< int, JoyDPadButton * > * getJoyButtons ()
 
int getCurrentDirection ()
 
int getJoyNumber ()
 
int getIndex ()
 
int getRealJoyNumber ()
 
virtual QString getName (bool fullForceFormat=false, bool displayNames=false)
 
void joyEvent (int value, bool ignoresets=false)
 
void queuePendingEvent (int value, bool ignoresets=false)
 
void activatePendingEvent ()
 
bool hasPendingEvent ()
 
void clearPendingEvent ()
 
void setJoyMode (JoyMode mode)
 
JoyMode getJoyMode ()
 
void releaseButtonEvents ()
 
void setButtonsMouseMode (JoyButton::JoyMouseMovementMode mode)
 
bool hasSameButtonsMouseMode ()
 
JoyButton::JoyMouseMovementMode getButtonsPresetMouseMode ()
 
void setButtonsMouseCurve (JoyButton::JoyMouseCurve mouseCurve)
 
bool hasSameButtonsMouseCurve ()
 
JoyButton::JoyMouseCurve getButtonsPresetMouseCurve ()
 
void setButtonsSpringWidth (int value)
 
int getButtonsPresetSpringWidth ()
 
void setButtonsSpringHeight (int value)
 
int getButtonsPresetSpringHeight ()
 
void setButtonsSensitivity (double value)
 
double getButtonsPresetSensitivity ()
 
void setButtonsWheelSpeedX (int value)
 
void setButtonsWheelSpeedY (int value)
 
const QString getDpadName ()
 
const QString getDefaultDpadName ()
 
virtual bool isDefault ()
 
QHash< int, JoyDPadButton * > * getButtons ()
 
virtual QString getXmlName ()
 
virtual void setDefaultDPadName (QString tempname)
 
virtual QString getDefaultDPadName ()
 
SetJoystickgetParentSet ()
 
bool hasSlotsAssigned ()
 
bool isRelativeSpring ()
 
void copyAssignments (JoyDPad *destDPad)
 
int getDPadDelay ()
 
double getButtonsEasingDuration ()
 
void setButtonsSpringDeadCircleMultiplier (int value)
 
int getButtonsSpringDeadCircleMultiplier ()
 
void setButtonsExtraAccelerationCurve (JoyButton::JoyExtraAccelerationCurve curve)
 
JoyButton::JoyExtraAccelerationCurve getButtonsExtraAccelerationCurve ()
 
QHash< int, JoyDPadButton * > getDirectionButtons (JoyDPadButton::JoyDPadDirections direction)
 
void setDirButtonsUpdateInitAccel (JoyDPadButton::JoyDPadDirections direction, bool state)
 
void copyLastDistanceValues (JoyDPad *srcDPad)
 
virtual void eventReset ()
 

Protected Member Functions

void populateButtons ()
 
void createDeskEvent (bool ignoresets=false)
 
QHash< int, JoyDPadButton * > getApplicableButtons ()
 

Private Slots

void dpadDirectionChangeEvent ()
 

Private Attributes

QHash< int, JoyDPadButton * > buttons
 
JoyDPadButton::JoyDPadDirections prevDirection
 
JoyDPadButton::JoyDPadDirections pendingDirection
 
JoyDPadButtonactiveDiagonalButton
 
QString dpadName
 
QString defaultDPadName
 
SetJoystickm_parentSet
 
QTimer directionDelayTimer
 
JoyMode currentMode
 
int m_index
 
int m_originset
 
int dpadDelay
 
int pendingEventDirection
 
bool pendingEvent
 
bool pendingIgnoreSets
 

Member Enumeration Documentation

◆ JoyMode

Enumerator
StandardMode 
EightWayMode 
FourWayCardinal 
FourWayDiagonal 

Constructor & Destructor Documentation

◆ JoyDPad()

JoyDPad::JoyDPad ( int  index,
int  originset,
SetJoystick parentSet,
QObject *  parent 
)
explicit
Here is the call graph for this function:

Member Function Documentation

◆ activatePendingEvent()

void JoyDPad::activatePendingEvent ( )
Here is the call graph for this function:
Here is the caller graph for this function:

◆ active

void JoyDPad::active ( int  value)
signal
Here is the caller graph for this function:

◆ clearPendingEvent()

void JoyDPad::clearPendingEvent ( )
Here is the caller graph for this function:

◆ copyAssignments()

void JoyDPad::copyAssignments ( JoyDPad destDPad)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ copyLastDistanceValues()

void JoyDPad::copyLastDistanceValues ( JoyDPad srcDPad)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ createDeskEvent()

void JoyDPad::createDeskEvent ( bool  ignoresets = false)
protected
Here is the call graph for this function:
Here is the caller graph for this function:

◆ disconnectPropertyUpdatedConnection

void JoyDPad::disconnectPropertyUpdatedConnection ( )
slot
Here is the call graph for this function:

◆ dpadDelayChanged

void JoyDPad::dpadDelayChanged ( int  value)
signal
Here is the caller graph for this function:

◆ dpadDirectionChangeEvent

void JoyDPad::dpadDirectionChangeEvent ( )
privateslot
Here is the call graph for this function:
Here is the caller graph for this function:

◆ dpadNameChanged

void JoyDPad::dpadNameChanged ( )
signal
Here is the caller graph for this function:

◆ establishPropertyUpdatedConnection

void JoyDPad::establishPropertyUpdatedConnection ( )
slot
Here is the call graph for this function:
Here is the caller graph for this function:

◆ eventReset()

void JoyDPad::eventReset ( )
virtual
Here is the call graph for this function:
Here is the caller graph for this function:

◆ getApplicableButtons()

QHash< int, JoyDPadButton * > JoyDPad::getApplicableButtons ( )
protected
Here is the caller graph for this function:

◆ getButtons()

QHash< int, JoyDPadButton * > * JoyDPad::getButtons ( )
Here is the caller graph for this function:

◆ getButtonsEasingDuration()

double JoyDPad::getButtonsEasingDuration ( )
Here is the call graph for this function:
Here is the caller graph for this function:

◆ getButtonsExtraAccelerationCurve()

JoyButton::JoyExtraAccelerationCurve JoyDPad::getButtonsExtraAccelerationCurve ( )
Here is the call graph for this function:
Here is the caller graph for this function:

◆ getButtonsPresetMouseCurve()

JoyButton::JoyMouseCurve JoyDPad::getButtonsPresetMouseCurve ( )
Here is the call graph for this function:
Here is the caller graph for this function:

◆ getButtonsPresetMouseMode()

JoyButton::JoyMouseMovementMode JoyDPad::getButtonsPresetMouseMode ( )
Here is the call graph for this function:
Here is the caller graph for this function:

◆ getButtonsPresetSensitivity()

double JoyDPad::getButtonsPresetSensitivity ( )
Here is the call graph for this function:
Here is the caller graph for this function:

◆ getButtonsPresetSpringHeight()

int JoyDPad::getButtonsPresetSpringHeight ( )
Here is the call graph for this function:
Here is the caller graph for this function:

◆ getButtonsPresetSpringWidth()

int JoyDPad::getButtonsPresetSpringWidth ( )
Here is the call graph for this function:
Here is the caller graph for this function:

◆ getButtonsSpringDeadCircleMultiplier()

int JoyDPad::getButtonsSpringDeadCircleMultiplier ( )
Here is the call graph for this function:
Here is the caller graph for this function:

◆ getCurrentDirection()

int JoyDPad::getCurrentDirection ( )
Here is the caller graph for this function:

◆ getDefaultDpadName()

const QString JoyDPad::getDefaultDpadName ( )
Here is the caller graph for this function:

◆ getDefaultDPadName()

QString JoyDPad::getDefaultDPadName ( )
virtual

◆ getDirectionButtons()

QHash< int, JoyDPadButton * > JoyDPad::getDirectionButtons ( JoyDPadButton::JoyDPadDirections  direction)
Here is the caller graph for this function:

◆ getDPadDelay()

int JoyDPad::getDPadDelay ( )
Here is the caller graph for this function:

◆ getDpadName()

const QString JoyDPad::getDpadName ( )
Here is the caller graph for this function:

◆ getIndex()

int JoyDPad::getIndex ( )
Here is the caller graph for this function:

◆ getJoyButton()

JoyDPadButton * JoyDPad::getJoyButton ( int  index_local)
Here is the caller graph for this function:

◆ getJoyButtons()

QHash< int, JoyDPadButton * > * JoyDPad::getJoyButtons ( )
Here is the caller graph for this function:

◆ getJoyMode()

JoyDPad::JoyMode JoyDPad::getJoyMode ( )
Here is the caller graph for this function:

◆ getJoyNumber()

int JoyDPad::getJoyNumber ( )
Here is the caller graph for this function:

◆ getName()

QString JoyDPad::getName ( bool  fullForceFormat = false,
bool  displayNames = false 
)
virtual

Reimplemented in VDPad, and GameControllerDPad.

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

◆ getParentSet()

SetJoystick * JoyDPad::getParentSet ( )
Here is the caller graph for this function:

◆ getRealJoyNumber()

int JoyDPad::getRealJoyNumber ( )
Here is the caller graph for this function:

◆ getXmlName()

QString JoyDPad::getXmlName ( )
virtual

Reimplemented in VDPad, and GameControllerDPad.

◆ hasPendingEvent()

bool JoyDPad::hasPendingEvent ( )
Here is the caller graph for this function:

◆ hasSameButtonsMouseCurve()

bool JoyDPad::hasSameButtonsMouseCurve ( )
Here is the call graph for this function:

◆ hasSameButtonsMouseMode()

bool JoyDPad::hasSameButtonsMouseMode ( )
Here is the call graph for this function:
Here is the caller graph for this function:

◆ hasSlotsAssigned()

bool JoyDPad::hasSlotsAssigned ( )
Here is the call graph for this function:
Here is the caller graph for this function:

◆ isDefault()

bool JoyDPad::isDefault ( )
virtual
Here is the call graph for this function:
Here is the caller graph for this function:

◆ isRelativeSpring()

bool JoyDPad::isRelativeSpring ( )
Here is the call graph for this function:
Here is the caller graph for this function:

◆ joyEvent()

void JoyDPad::joyEvent ( int  value,
bool  ignoresets = false 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ joyModeChanged

void JoyDPad::joyModeChanged ( )
signal
Here is the caller graph for this function:

◆ populateButtons()

void JoyDPad::populateButtons ( )
protected
Here is the caller graph for this function:

◆ propertyUpdated

void JoyDPad::propertyUpdated ( )
signal
Here is the caller graph for this function:

◆ queuePendingEvent()

void JoyDPad::queuePendingEvent ( int  value,
bool  ignoresets = false 
)
Here is the caller graph for this function:

◆ releaseButtonEvents()

void JoyDPad::releaseButtonEvents ( )
Here is the call graph for this function:
Here is the caller graph for this function:

◆ released

void JoyDPad::released ( int  value)
signal
Here is the caller graph for this function:

◆ setButtonsEasingDuration

void JoyDPad::setButtonsEasingDuration ( double  value)
slot
Here is the call graph for this function:
Here is the caller graph for this function:

◆ setButtonsExtraAccelerationCurve()

void JoyDPad::setButtonsExtraAccelerationCurve ( JoyButton::JoyExtraAccelerationCurve  curve)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ setButtonsMouseCurve()

void JoyDPad::setButtonsMouseCurve ( JoyButton::JoyMouseCurve  mouseCurve)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ setButtonsMouseMode()

void JoyDPad::setButtonsMouseMode ( JoyButton::JoyMouseMovementMode  mode)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ setButtonsSensitivity()

void JoyDPad::setButtonsSensitivity ( double  value)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ setButtonsSpringDeadCircleMultiplier()

void JoyDPad::setButtonsSpringDeadCircleMultiplier ( int  value)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ setButtonsSpringHeight()

void JoyDPad::setButtonsSpringHeight ( int  value)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ setButtonsSpringRelativeStatus

void JoyDPad::setButtonsSpringRelativeStatus ( bool  value)
slot
Here is the call graph for this function:
Here is the caller graph for this function:

◆ setButtonsSpringWidth()

void JoyDPad::setButtonsSpringWidth ( int  value)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ setButtonsWheelSpeedX()

void JoyDPad::setButtonsWheelSpeedX ( int  value)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ setButtonsWheelSpeedY()

void JoyDPad::setButtonsWheelSpeedY ( int  value)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ setDefaultDPadName()

void JoyDPad::setDefaultDPadName ( QString  tempname)
virtual
Here is the caller graph for this function:

◆ setDirButtonsUpdateInitAccel()

void JoyDPad::setDirButtonsUpdateInitAccel ( JoyDPadButton::JoyDPadDirections  direction,
bool  state 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ setDPadDelay

void JoyDPad::setDPadDelay ( int  value)
slot
Here is the caller graph for this function:

◆ setDPadName

void JoyDPad::setDPadName ( QString  tempName)
slot
Here is the caller graph for this function:

◆ setJoyMode()

void JoyDPad::setJoyMode ( JoyMode  mode)
Here is the caller graph for this function:

Field Documentation

◆ activeDiagonalButton

JoyDPadButton* JoyDPad::activeDiagonalButton
private

◆ buttons

QHash<int, JoyDPadButton *> JoyDPad::buttons
private

◆ currentMode

JoyMode JoyDPad::currentMode
private

◆ defaultDPadName

QString JoyDPad::defaultDPadName
private

◆ directionDelayTimer

QTimer JoyDPad::directionDelayTimer
private

◆ dpadDelay

int JoyDPad::dpadDelay
private

◆ dpadName

QString JoyDPad::dpadName
private

◆ m_index

int JoyDPad::m_index
private

◆ m_originset

int JoyDPad::m_originset
private

◆ m_parentSet

SetJoystick* JoyDPad::m_parentSet
private

◆ pendingDirection

JoyDPadButton::JoyDPadDirections JoyDPad::pendingDirection
private

◆ pendingEvent

bool JoyDPad::pendingEvent
private

◆ pendingEventDirection

int JoyDPad::pendingEventDirection
private

◆ pendingIgnoreSets

bool JoyDPad::pendingIgnoreSets
private

◆ prevDirection

JoyDPadButton::JoyDPadDirections JoyDPad::prevDirection
private

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