AntiMicroX
gamecontrollermappingdialoghelper.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 GAMECONTROLLERMAPPINGDIALOGHELPER_H
20 #define GAMECONTROLLERMAPPINGDIALOGHELPER_H
21 
22 #include <QList>
23 #include <QObject>
24 
25 class InputDevice;
26 
27 class GameControllerMappingDialogHelper : public QObject
28 {
29  Q_OBJECT
30  public:
31  explicit GameControllerMappingDialogHelper(InputDevice *device, QObject *parent = nullptr);
32 
33  public slots:
34  void raiseDeadZones();
35  void raiseDeadZones(int deadZone);
36  void setupDeadZones();
38 
39  private:
42 };
43 
44 #endif // GAMECONTROLLERMAPPINGDIALOGHELPER_H
InputDevice::setRawAxisDeadZone
void setRawAxisDeadZone(int deadZone)
Definition: inputdevice.cpp:1680
GameControllerMappingDialogHelper::originalAxesDeadZones
QList< int > originalAxesDeadZones
Definition: gamecontrollermappingdialoghelper.h:41
SetJoystick::setIgnoreEventState
void setIgnoreEventState(bool ignore)
Definition: setjoystick.cpp:756
globalvariables.h
GameControllerMappingDialogHelper::device
InputDevice * device
Definition: gamecontrollermappingdialoghelper.h:40
InputDevice
Abstract class representing a hardware input device, e.g a joystick or controller.
Definition: inputdevice.h:50
GameControllerMappingDialogHelper::GameControllerMappingDialogHelper
GameControllerMappingDialogHelper(InputDevice *device, QObject *parent=nullptr)
Definition: gamecontrollermappingdialoghelper.cpp:26
SetJoystick::raiseAxesDeadZones
void raiseAxesDeadZones(int deadZone=0)
Raise the dead zones for axes. Used when launching the controller mapping window.
Definition: setjoystick.cpp:1042
SetJoystick::setAxesDeadZones
void setAxesDeadZones(QList< int > *axesDeadZones)
Definition: setjoystick.cpp:1071
gamecontrollermappingdialoghelper.h
GameControllerMappingDialogHelper
Definition: gamecontrollermappingdialoghelper.h:27
SetJoystick::currentAxesDeadZones
void currentAxesDeadZones(QList< int > *axesDeadZones)
Definition: setjoystick.cpp:1060
inputdevice.h
SetJoystick::release
void release()
Perform a release of all elements of a set. Stick and vdpad releases will be handled by the associate...
Definition: setjoystick.cpp:319
GameControllerMappingDialogHelper::restoreDeviceDeadZones
void restoreDeviceDeadZones()
Definition: gamecontrollermappingdialoghelper.cpp:55
GlobalVariables::InputDevice::RAISEDDEADZONE
static const int RAISEDDEADZONE
Definition: globalvariables.h:106
GameControllerMappingDialogHelper::raiseDeadZones
void raiseDeadZones()
Definition: gamecontrollermappingdialoghelper.cpp:32
GameControllerMappingDialogHelper::setupDeadZones
void setupDeadZones()
Definition: gamecontrollermappingdialoghelper.cpp:44
InputDevice::getActiveSetJoystick
SetJoystick * getActiveSetJoystick()
Definition: inputdevice.cpp:563