AntiMicroX
Loading...
Searching...
No Matches
joybuttonmousehelper.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 JOYBUTTONMOUSEHELPER_H
20#define JOYBUTTONMOUSEHELPER_H
21
22#include <QObject>
23
24class QThread;
25
26class JoyButtonMouseHelper : public QObject
27{
29
30 public:
31 explicit JoyButtonMouseHelper(QObject *parent = nullptr);
35 void carryGamePollRateUpdate(int pollRate);
37
38 signals:
41 void gamepadRefreshRateUpdated(int pollRate);
43
44 public slots:
45 void moveMouseCursor();
46 void moveSpringMouse();
47 void mouseEvent();
49
50 private:
52};
53
54#endif // JOYBUTTONMOUSEHELPER_H
Definition joybuttonmousehelper.h:27
void changeThread(QThread *thread)
Definition joybuttonmousehelper.cpp:118
void mouseCursorMoved(int mouseX, int mouseY, int elapsed)
void gamepadRefreshRateUpdated(int pollRate)
void resetButtonMouseDistances()
Definition joybuttonmousehelper.cpp:100
void setFirstSpringStatus(bool status)
Definition joybuttonmousehelper.cpp:110
void mouseSpringMoved(int mouseX, int mouseY)
void mouseEvent()
Perform mouse events for all buttons and slots.
Definition joybuttonmousehelper.cpp:74
bool getFirstSpringStatus()
Definition joybuttonmousehelper.cpp:112
void moveMouseCursor()
Perform mouse movement in cursor mode.
Definition joybuttonmousehelper.cpp:37
void mouseRefreshRateUpdated(int refreshRate)
bool firstSpringEvent
Definition joybuttonmousehelper.h:51
void carryGamePollRateUpdate(int pollRate)
Definition joybuttonmousehelper.cpp:114
void moveSpringMouse()
Perform mouse movement in spring mode.
Definition joybuttonmousehelper.cpp:57
void carryMouseRefreshRateUpdate(int refreshRate)
Definition joybuttonmousehelper.cpp:116
Definition joydpadxml.h:27