AntiMicroX
Loading...
Searching...
No Matches
mousesensorsettingsdialog.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
19#include "ui_mousesettingsdialog.h"
20
21#include "mousesettingsdialog.h"
22
23class JoySensor;
25
30{
32
33 public:
34 explicit MouseSensorSettingsDialog(JoySensor *sensor, QWidget *parent = 0);
35
36 JoySensor *getSensor() const;
37
38 protected:
42
43 public slots:
44 void updateConfigHorizontalSpeed(int value);
45 void updateConfigVerticalSpeed(int value);
46 void updateWheelSpeedHorizontalSpeed(int value);
47 void updateWheelSpeedVerticalSpeed(int value);
48
49 virtual void changeMouseMode(int index);
50 virtual void changeMouseCurve(int index);
51
52 private:
54};
Definition joydpadxml.h:27
Represents one sensor in a SetJoystick and its connections to other parts of the application....
Definition joysensor.h:40
Mouse settings dialog specialized for sensors.
Definition mousesensorsettingsdialog.h:30
void updateConfigVerticalSpeed(int value)
Vertical mouse speed change UI event handler Updates vertical mouse speed on all buttons of the assoc...
Definition mousesensorsettingsdialog.cpp:153
void updateWheelSpeedHorizontalSpeed(int value)
Horizontal mouse wheel speed change UI event handler Updates horizontal mouse wheel speed on all butt...
Definition mousesensorsettingsdialog.cpp:167
void updateWindowTitleSensorName()
Shows the sensor name in dialog title.
Definition mousesensorsettingsdialog.cpp:111
virtual void changeMouseCurve(int index)
Not used for sensors but necessary to implement because it is an abstract function in the parent clas...
Definition mousesensorsettingsdialog.cpp:201
void calculateWheelSpeedPreset()
Get the maximum mouse wheel speed used by the buttons of the associated sensor and set the UI values ...
Definition mousesensorsettingsdialog.cpp:92
void calculateMouseSpeedPreset()
Get the maximum mouse speed used by the buttons of the associated sensor and set the UI values to it.
Definition mousesensorsettingsdialog.cpp:72
JoySensor * m_sensor
Definition mousesensorsettingsdialog.h:53
void updateWheelSpeedVerticalSpeed(int value)
Vertical mouse wheel speed change UI event handler Updates vertical mouse wheel speed on all buttons ...
Definition mousesensorsettingsdialog.cpp:181
void updateConfigHorizontalSpeed(int value)
Horizontal mouse speed change UI event handler Updates horizontal mouse speed on all buttons of the a...
Definition mousesensorsettingsdialog.cpp:139
JoySensor * getSensor() const
Gets the underlying JoySensor object.
Definition mousesensorsettingsdialog.cpp:66
virtual void changeMouseMode(int index)
Not used for sensors but necessary to implement because it is an abstract function in the parent clas...
Definition mousesensorsettingsdialog.cpp:195
Definition mousesettingsdialog.h:31
Definition springmoderegionpreview.h:27