2023-05-21 15:57:57 +02:00
|
|
|
#pragma once
|
|
|
|
|
|
2023-05-22 22:05:16 +02:00
|
|
|
#include <QComboBox>
|
2023-05-21 15:57:57 +02:00
|
|
|
#include <QDialog>
|
|
|
|
|
#include <QTabWidget>
|
|
|
|
|
|
2023-05-22 22:05:16 +02:00
|
|
|
#include <vector>
|
|
|
|
|
|
2023-05-21 15:57:57 +02:00
|
|
|
class emulated_pad_settings_dialog : public QDialog
|
|
|
|
|
{
|
|
|
|
|
Q_OBJECT
|
|
|
|
|
|
|
|
|
|
public:
|
|
|
|
|
enum class pad_type
|
|
|
|
|
{
|
|
|
|
|
buzz,
|
|
|
|
|
turntable,
|
|
|
|
|
ghltar,
|
|
|
|
|
usio,
|
2024-07-08 20:17:21 +02:00
|
|
|
gem,
|
2024-05-15 22:56:03 +02:00
|
|
|
ds3gem,
|
2025-01-09 21:10:28 +01:00
|
|
|
mousegem,
|
2024-04-26 15:24:26 +02:00
|
|
|
guncon3,
|
|
|
|
|
topshotelite,
|
2024-07-01 23:08:10 +02:00
|
|
|
topshotfearmaster,
|
2023-05-21 15:57:57 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
emulated_pad_settings_dialog(pad_type type, QWidget* parent = nullptr);
|
|
|
|
|
|
|
|
|
|
private:
|
|
|
|
|
template <typename T>
|
|
|
|
|
void add_tabs(QTabWidget* tabs);
|
|
|
|
|
|
|
|
|
|
void load_config();
|
|
|
|
|
void save_config();
|
|
|
|
|
void reset_config();
|
|
|
|
|
|
|
|
|
|
pad_type m_type;
|
2023-05-22 22:05:16 +02:00
|
|
|
|
2023-05-23 01:15:13 +02:00
|
|
|
std::vector<std::vector<QComboBox*>> m_combos;
|
2023-05-21 15:57:57 +02:00
|
|
|
};
|