2020-07-22 15:39:53 +01:00
|
|
|
// Copyright 2020 yuzu Emulator Project
|
|
|
|
// Licensed under GPLv2 or any later version
|
|
|
|
// Refer to the license.txt file included.
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
2020-08-15 20:26:29 +01:00
|
|
|
#include <array>
|
2020-07-22 15:39:53 +01:00
|
|
|
#include <memory>
|
|
|
|
#include <QWidget>
|
|
|
|
|
|
|
|
class QColor;
|
|
|
|
class QPushButton;
|
|
|
|
|
|
|
|
namespace Ui {
|
|
|
|
class ConfigureInputAdvanced;
|
|
|
|
}
|
|
|
|
|
|
|
|
class ConfigureInputAdvanced : public QWidget {
|
|
|
|
Q_OBJECT
|
|
|
|
|
|
|
|
public:
|
|
|
|
explicit ConfigureInputAdvanced(QWidget* parent = nullptr);
|
|
|
|
~ConfigureInputAdvanced() override;
|
|
|
|
|
|
|
|
void ApplyConfiguration();
|
|
|
|
|
|
|
|
signals:
|
|
|
|
void CallDebugControllerDialog();
|
|
|
|
void CallMouseConfigDialog();
|
|
|
|
void CallTouchscreenConfigDialog();
|
2020-08-29 19:56:51 +01:00
|
|
|
void CallMotionTouchConfigDialog();
|
2020-07-22 15:39:53 +01:00
|
|
|
|
|
|
|
private:
|
|
|
|
void changeEvent(QEvent* event) override;
|
|
|
|
void RetranslateUI();
|
|
|
|
void UpdateUIEnabled();
|
|
|
|
|
2020-10-27 17:33:25 +00:00
|
|
|
void OnControllerButtonClick(std::size_t player_idx, std::size_t button_idx);
|
2020-07-22 15:39:53 +01:00
|
|
|
|
|
|
|
void LoadConfiguration();
|
|
|
|
|
|
|
|
std::unique_ptr<Ui::ConfigureInputAdvanced> ui;
|
|
|
|
|
|
|
|
std::array<std::array<QColor, 4>, 8> controllers_colors;
|
|
|
|
std::array<std::array<QPushButton*, 4>, 8> controllers_color_buttons;
|
|
|
|
};
|