AntiMicroX
joygradientbutton.h
Go to the documentation of this file.
1 /* antimicrox Gamepad to KB+M event mapper
2  * Copyright (C) 2015 Travis Nickles <nickles.travis@gmail.com>
3  * Copyright (C) 2020 Jagoda Górska <juliagoda.pl@protonmail>
4  *
5  * This program is free software: you can redistribute it and/or modify
6  * it under the terms of the GNU General Public License as published by
7  * the Free Software Foundation, either version 3 of the License, or
8  * (at your option) any later version.
9 
10  * This program is distributed in the hope that it will be useful,
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13  * GNU General Public License for more details.
14 
15  * You should have received a copy of the GNU General Public License
16  * along with this program. If not, see <http://www.gnu.org/licenses/>.
17  */
18 
19 #ifndef JOYGRADIENTBUTTON_H
20 #define JOYGRADIENTBUTTON_H
21 
22 #include "joybutton.h"
23 
24 class SetJoystick;
25 
27 {
28  Q_OBJECT
29 
30  public:
31  explicit JoyGradientButton(int sdl_button_index, int originset, SetJoystick *parentSet, QObject *parent);
32 
35 
36  protected slots:
37  virtual void turboEvent();
38  virtual void wheelEventVertical();
39  virtual void wheelEventHorizontal();
40 };
41 
42 #endif // JOYGRADIENTBUTTON_H
JoyButton::turboTimer
QTimer turboTimer
Definition: joybutton.h:318
JoyButton::mouseWheelHorizontalEventQueue
QQueue< JoyButtonSlot * > mouseWheelHorizontalEventQueue
Definition: joybutton.h:334
JoyButton::wheelSpeedX
int wheelSpeedX
Definition: joybutton.h:305
JoyGradientButton
Definition: joygradientbutton.h:26
JoyButton::getPartialName
virtual QString getPartialName(bool forceFullFormat=false, bool displayNames=false) const
Definition: joybutton.cpp:1601
JoyButton::releaseDeskEvent
void releaseDeskEvent(bool skipsetchange=false)
Definition: joybutton.cpp:2780
JoyButton::setChangeSetCondition
virtual void setChangeSetCondition(SetChangeCondition condition, bool passive=false, bool updateActiveString=true)
Definition: joybutton.cpp:2431
JoyButton::isKeyPressed
bool isKeyPressed
Definition: joybutton.h:312
JoyButton::lastWheelVerticalDistance
double lastWheelVerticalDistance
Definition: joybutton.h:315
JoyButton::getTurboMode
TurboMode getTurboMode()
Get currently assigned turbo mode.
Definition: joybutton.cpp:4145
JoyButton::GradientTurbo
@ GradientTurbo
Definition: joybutton.h:88
JoyButton::tempTurboInterval
int tempTurboInterval
Definition: joybutton.h:308
SetJoystick
A set of mapped events which can by switched by a controller event. Contains controller input objects...
Definition: setjoystick.h:39
JoyButton::containsJoyMixSlot
bool containsJoyMixSlot()
Definition: joybutton.cpp:3348
JoyButton::PulseTurbo
@ PulseTurbo
Definition: joybutton.h:89
JoyButton::wheelVerticalTime
QElapsedTimer wheelVerticalTime
Definition: joybutton.h:322
JoyButton::turboInterval
int turboInterval
Definition: joybutton.h:304
JoyButton::mouseWheelHorizontalEventTimer
QTimer mouseWheelHorizontalEventTimer
Definition: joybutton.h:320
JoyButtonSlot
Represents action which can be performed after pressing button.
Definition: joybuttonslot.h:37
JoyButton::wheelSpeedY
int wheelSpeedY
Definition: joybutton.h:306
JoyButton::turboHold
QElapsedTimer turboHold
Definition: joybutton.h:324
JoyGradientButton::wheelEventHorizontal
virtual void wheelEventHorizontal()
Definition: joygradientbutton.cpp:370
JoyButton::turboEvent
virtual void turboEvent()
Definition: joybutton.cpp:413
JoyButton::mouseWheelVerticalEventQueue
QQueue< JoyButtonSlot * > mouseWheelVerticalEventQueue
Definition: joybutton.h:333
joygradientbutton.h
JoyGradientButton::JoyGradientButton
JoyGradientButton(int sdl_button_index, int originset, SetJoystick *parentSet, QObject *parent)
Definition: joygradientbutton.cpp:28
event.h
JoyGradientButton::turboEvent
virtual void turboEvent()
Activate a turbo event on a button.
Definition: joygradientbutton.cpp:36
joybutton.h
JoyButton::NormalTurbo
@ NormalTurbo
Definition: joybutton.h:87
JoyButton
Represents a single joystick button being part of a SetJoystick Contains multiple JoyButtonSlots whic...
Definition: joybutton.h:46
JoyButton::lastDistance
double lastDistance
Definition: joybutton.h:314
JoyButton::createDeskEvent
void createDeskEvent()
Definition: joybutton.cpp:551
JoyButton::isButtonPressedQueue
QQueue< bool > isButtonPressedQueue
Definition: joybutton.h:332
JoyButton::currentWheelVerticalEvent
JoyButtonSlot * currentWheelVerticalEvent
Definition: joybutton.h:328
JoyButton::allSlotTimeBetweenSlots
static int allSlotTimeBetweenSlots
Definition: joybutton.h:286
JoyButton::getActiveSlots
const QList< JoyButtonSlot * > & getActiveSlots()
Definition: joybutton.cpp:2392
setjoystick.h
sendevent
void sendevent(JoyButtonSlot *slot, bool pressed)
Definition: event.cpp:142
JoyButton::currentWheelHorizontalEvent
JoyButtonSlot * currentWheelHorizontalEvent
Definition: joybutton.h:329
JoyButton::mouseWheelVerticalEventTimer
QTimer mouseWheelVerticalEventTimer
Definition: joybutton.h:319
number
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
JoyButton::getMouseDistanceFromDeadZone
virtual double getMouseDistanceFromDeadZone()
Get the distance factor that should be used for mouse movement.
Definition: joybutton.cpp:2948
JoyButton::lastWheelHorizontalDistance
double lastWheelHorizontalDistance
Definition: joybutton.h:316
JoyButton::wheelHorizontalTime
QElapsedTimer wheelHorizontalTime
Definition: joybutton.h:323
JoyButton::isButtonPressed
bool isButtonPressed
Definition: joybutton.h:311
JoyGradientButton::wheelEventVertical
virtual void wheelEventVertical()
Definition: joygradientbutton.cpp:221
JoyButton::ignoreSetQueue
QQueue< bool > ignoreSetQueue
Definition: joybutton.h:331