2022-04-23 20:49:07 +02:00
|
|
|
// SPDX-FileCopyrightText: Copyright 2020 yuzu Emulator Project
|
|
|
|
// SPDX-License-Identifier: GPL-2.0-or-later
|
2020-12-28 16:15:37 +01:00
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <array>
|
|
|
|
#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();
|
|
|
|
void CallMotionTouchConfigDialog();
|
2022-04-16 16:44:44 +02:00
|
|
|
void CallRingControllerDialog();
|
2020-12-28 16:15:37 +01:00
|
|
|
|
|
|
|
private:
|
|
|
|
void changeEvent(QEvent* event) override;
|
|
|
|
void RetranslateUI();
|
|
|
|
void UpdateUIEnabled();
|
|
|
|
|
|
|
|
void OnControllerButtonClick(std::size_t player_idx, std::size_t button_idx);
|
|
|
|
|
|
|
|
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;
|
|
|
|
};
|