 |
AntiMicroX
|
Go to the documentation of this file.
27 #include <QDeadlineTimer>
29 #include <QReadWriteLock>
36 class QXmlStreamReader;
37 class QXmlStreamWriter;
51 explicit JoyButton(
int sdl_button_index,
int originset,
SetJoystick *parentSet, QObject *parent);
98 void joyEvent(
bool pressed,
bool ignoresets =
false);
191 virtual QString
getPartialName(
bool forceFullFormat =
false,
bool displayNames =
false)
const;
196 virtual QString
getName(
bool forceFullFormat =
false,
bool displayNames =
false);
216 static bool hasCursorEvents(QList<JoyButton::mouseCursorInfo> *cursorXSpeedsList,
217 QList<JoyButton::mouseCursorInfo> *cursorYSpeedsList);
218 static bool hasSpringEvents(QList<PadderCommon::springModeInfo> *springXSpeedsList,
219 QList<PadderCommon::springModeInfo> *springYSpeedsList);
223 static void setWeightModifier(
double modifier,
double maxWeightModifier,
double &weightModifier);
224 static void moveMouseCursor(
int &movedX,
int &movedY,
int &movedElapsed, QList<double> *mouseHistoryX,
226 int mouseRefreshRate,
int mouseHistorySize, QList<JoyButton::mouseCursorInfo> *
cursorXSpeeds,
227 QList<JoyButton::mouseCursorInfo> *
cursorYSpeeds,
double &cursorRemainderX,
228 double &cursorRemainderY,
double weightModifier,
int idleMouseRefrRate,
229 QList<JoyButton *> *pendingMouseButtonse);
230 static void moveSpringMouse(
int &movedX,
int &movedY,
bool &hasMoved,
int springModeScreen,
234 static void setMouseHistorySize(
int size,
int maxMouseHistSize,
int &mouseHistSize, QList<double> *mouseHistoryX,
235 QList<double> *mouseHistoryY);
374 virtual void reset();
375 virtual void reset(
int index);
427 inline void updateMouseParams(
bool updatedLastDist,
bool updatedStartDist,
double oldAccelMultiVal)
448 if (currentChangedSlot)
468 if (stoppedSlotSetTimer)
487 inline void restartAccelParams(
bool updatedOldAccel,
bool restartedAccelDurTimer,
bool restartedRestParams)
500 if (restartedAccelDurTimer)
503 if (restartedRestParams)
528 void startTimerOverrun(
int slotCode, QElapsedTimer *currSlotTime, QTimer *currSlotTimer,
bool releasedDeskTimer =
false);
532 bool &changeRepeatState,
bool activeSlotHashWindows =
false);
534 QList<int> &indexesToRemove);
538 static void adjustAxForCursor(QList<double> *mouseHistoryList,
double &adjustedAx,
double &cursorRemainder,
539 double weightModifier);
541 double distanceFromDeadZone);
547 void updateMouseProperties(
double newAxisValue,
double newSpringDead,
int newSpringWidth,
int newSpringHeight,
548 bool relatived,
int modeScreen, QList<PadderCommon::springModeInfo> &springSpeeds, QChar axis,
549 double newAxisValueY = 0,
double newSpringDeadY = 0);
553 QStringList *stringlist,
int &i, QListIterator<JoyButtonSlot *> *iter,
654 QListIterator<JoyButtonSlot *> *
slotiter);
685 #endif // JOYBUTTON_H
double springDeadX
Definition: springmousemoveinfo.h:37
#define DEBUG()
Definition: logger.h:41
the intent is to exercise the right to control the distribution of derivative or collective works based on the Library In mere aggregation of another work not based on the Library with the you must alter all the notices that refer to this so that they refer to the ordinary GNU General Public instead of to this it is irreversible for that so the ordinary GNU General Public License applies to all subsequent copies and derivative works made from that copy This option is useful when you wish to copy part of the code of the Library into a program that is not a library You may copy and distribute the which must be distributed under the terms of Sections and above on a medium customarily used for software interchange If distribution of object code is made by offering access to copy from a designated then offering equivalent access to copy the source code from the same place satisfies the requirement to distribute the source code
Definition: lgpl-2.1.txt:237
bool relative
Definition: springmousemoveinfo.h:35
static const double PI
Definition: globalvariables.h:214
void sendKeybEvent(JoyButtonSlot *slot, bool pressed)
Definition: event.cpp:792
int width
Definition: springmousemoveinfo.h:31
void queueJoyEvent(bool ignoresets=false)
Definition: vdpad.cpp:264
void joyEvent(bool pressed, bool ignoresets=false)
Definition: vdpad.cpp:109
static bool isDebugEnabled()
Definition: logger.cpp:260
~MiniSlotRun()
Definition: joybutton.h:669
A set of mapped events which can by switched by a controller event. Contains controller input objects...
Definition: setjoystick.h:39
Definition: springmousemoveinfo.h:23
double springDeadY
Definition: springmousemoveinfo.h:38
JoyButtonSlot * m_slotmini
Definition: joybutton.h:680
JoyButtonSlot * m_slot
Definition: joybutton.h:679
void sendSpringEvent(PadderCommon::springModeInfo *fullSpring, PadderCommon::springModeInfo *relativeSpring, int *const mousePosX, int *const mousePosY)
Definition: event.cpp:287
int screen
Definition: springmousemoveinfo.h:36
int m_miliseconds
Definition: joybutton.h:682
int height
Definition: springmousemoveinfo.h:32
Definition: joybutton.h:657
that you receive source code or can get it if you want it
Definition: lgpl-2.1.txt:31
JoyButton * m_btn
Definition: joybutton.h:681
void sendevent(JoyButtonSlot *slot, bool pressed)
Definition: event.cpp:142
double displacementX
Definition: springmousemoveinfo.h:26
double displacementY
Definition: springmousemoveinfo.h:28
it is up to the author donor to decide if he or she is willing to distribute software through any other system and a licensee cannot impose that choice This section is intended to make thoroughly clear what is believed to be a consequence of the rest of this License If the distribution and or use of the Library is restricted in certain countries either by patents or by copyrighted the original copyright holder who places the Library under this License may add an geographical distribution limitation excluding those so that distribution is permitted only in or among countries not thus excluded In such this License incorporates the limitation as if written in the body of this License The Free Software Foundation may publish revised and or new versions of the Lesser General Public License from time to time Such new versions will be similar in spirit to the present but may differ in detail to address new problems or concerns Each version is given a distinguishing version number If the Library specifies a version number of this License which applies to it and any later you have the option of following the terms and conditions either of that version or of any later version published by the Free Software Foundation If the Library does not specify a license version number
Definition: lgpl-2.1.txt:423
MiniSlotRun(JoyButtonSlot *slot, JoyButtonSlot *slotmini, JoyButton *btn, int milisec)
Definition: joybutton.h:660
void run()
Definition: joybutton.h:671