AntiMicroX
Loading...
Searching...
No Matches
applaunchhelper.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 APPLAUNCHHELPER_H
20#define APPLAUNCHHELPER_H
21
22#include <QObject>
23
24#include <SDL2/SDL_joystick.h>
25
27class InputDevice;
28class QThread;
29
30class AppLaunchHelper : public QObject
31{
32 Q_OBJECT
33
34 public:
35 explicit AppLaunchHelper(AntiMicroSettings *settings, bool graphical = false, QObject *parent = 0);
36
37 void printControllerList(QMap<SDL_JoystickID, InputDevice *> *joysticks);
38
40
41 protected:
47#ifdef Q_OS_WIN
48 void checkPointerPrecision();
49#endif
50
51 public slots:
52#ifdef Q_OS_WIN
53 void appQuitPointerPrecision();
54#endif
55 void initRunMethods();
56 void revertMouseThread();
57 void changeMouseThread(QThread *thread);
58
59 private:
62};
63
64#endif // APPLAUNCHHELPER_H
Definition antimicrosettings.h:27
Definition applaunchhelper.h:31
void printControllerList(QMap< SDL_JoystickID, InputDevice * > *joysticks)
Definition applaunchhelper.cpp:106
void changeSpringModeScreen()
Definition applaunchhelper.cpp:128
bool graphical
Definition applaunchhelper.h:61
void changeGamepadPollRate()
Definition applaunchhelper.cpp:96
AntiMicroSettings * settings
Definition applaunchhelper.h:60
void enablePossibleMouseSmoothing()
Definition applaunchhelper.cpp:56
void changeMouseThread(QThread *thread)
Definition applaunchhelper.cpp:172
void changeMouseRefreshRate()
Definition applaunchhelper.cpp:82
void initRunMethods()
Definition applaunchhelper.cpp:41
void revertMouseThread()
Definition applaunchhelper.cpp:166
void establishMouseTimerConnections()
Definition applaunchhelper.cpp:178
AntiMicroSettings * getSettings() const
Definition applaunchhelper.cpp:180
Abstract class representing a hardware input device, e.g a joystick or controller.
Definition inputdevice.h:51