2021-11-25 10:20:56 +01:00
|
|
|
#ifndef QT_SETTINGSINPUT_HPP
|
|
|
|
|
#define QT_SETTINGSINPUT_HPP
|
|
|
|
|
|
|
|
|
|
#include <QWidget>
|
|
|
|
|
|
|
|
|
|
namespace Ui {
|
|
|
|
|
class SettingsInput;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
class SettingsInput : public QWidget
|
|
|
|
|
{
|
|
|
|
|
Q_OBJECT
|
|
|
|
|
|
|
|
|
|
public:
|
|
|
|
|
explicit SettingsInput(QWidget *parent = nullptr);
|
|
|
|
|
~SettingsInput();
|
|
|
|
|
|
|
|
|
|
void save();
|
|
|
|
|
|
|
|
|
|
public slots:
|
|
|
|
|
void onCurrentMachineChanged(int machineId);
|
|
|
|
|
|
|
|
|
|
private slots:
|
|
|
|
|
void on_pushButtonConfigureMouse_clicked();
|
|
|
|
|
void on_comboBoxJoystick_currentIndexChanged(int index);
|
|
|
|
|
void on_comboBoxMouse_currentIndexChanged(int index);
|
2021-12-13 22:45:37 +01:00
|
|
|
void on_pushButtonJoystick1_clicked();
|
|
|
|
|
void on_pushButtonJoystick2_clicked();
|
|
|
|
|
void on_pushButtonJoystick3_clicked();
|
|
|
|
|
void on_pushButtonJoystick4_clicked();
|
2021-11-25 10:20:56 +01:00
|
|
|
|
|
|
|
|
private:
|
|
|
|
|
Ui::SettingsInput *ui;
|
|
|
|
|
int machineId = 0;
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
#endif // QT_SETTINGSINPUT_HPP
|