AntiMicroX
joygyroscopebutton.h
Go to the documentation of this file.
1 /* antimicrox Gamepad to KB+M event mapper
2  * Copyright (C) 2022 Max Maisel <max.maisel@posteo.de>
3  *
4  * This program is free software: you can redistribute it and/or modify
5  * it under the terms of the GNU General Public License as published by
6  * the Free Software Foundation, either version 3 of the License, or
7  * (at your option) any later version.
8 
9  * This program is distributed in the hope that it will be useful,
10  * but WITHOUT ANY WARRANTY; without even the implied warranty of
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12  * GNU General Public License for more details.
13 
14  * You should have received a copy of the GNU General Public License
15  * along with this program. If not, see <http://www.gnu.org/licenses/>.
16  */
17 #pragma once
18 
20 
25 {
26  Q_OBJECT
27 
28  public:
29  explicit JoyGyroscopeButton(JoySensor *sensor, int index, int originset, SetJoystick *parentSet, QObject *parent);
30 
31  virtual QString getDirectionName() const override;
32 };
SENSOR_FWD
@ SENSOR_FWD
Definition: joysensordirection.h:34
SetJoystick
A set of mapped events which can by switched by a controller event. Contains controller input objects...
Definition: setjoystick.h:39
SENSOR_LEFT
@ SENSOR_LEFT
Definition: joysensordirection.h:30
JoyGyroscopeButton::JoyGyroscopeButton
JoyGyroscopeButton(JoySensor *sensor, int index, int originset, SetJoystick *parentSet, QObject *parent)
Definition: joygyroscopebutton.cpp:21
SENSOR_DOWN
@ SENSOR_DOWN
Definition: joysensordirection.h:33
JoySensorButton
Represents a sensor mapping in a SetJoystick.
Definition: joysensorbutton.h:30
JoyGyroscopeButton::getDirectionName
virtual QString getDirectionName() const override
Get translated gyroscope direction name of this button.
Definition: joygyroscopebutton.cpp:30
SENSOR_UP
@ SENSOR_UP
Definition: joysensordirection.h:32
JoySensor
Represents one sensor in a SetJoystick and its connections to other parts of the application....
Definition: joysensor.h:39
WARN
#define WARN()
Definition: logger.h:44
SENSOR_RIGHT
@ SENSOR_RIGHT
Definition: joysensordirection.h:31
JoyButton::m_index_sdl
int m_index_sdl
Definition: joybutton.h:303
JoyGyroscopeButton
Represents a gyroscope mapping in a SetJoystick.
Definition: joygyroscopebutton.h:24
joysensorbutton.h
joysensordirection.h
SENSOR_BWD
@ SENSOR_BWD
Definition: joysensordirection.h:35
joygyroscopebutton.h