mirror of
https://github.com/yuzu-mirror/yuzu.git
synced 2024-11-08 07:09:57 +00:00
99ceb03a1c
This formats all copyright comments according to SPDX formatting guidelines. Additionally, this resolves the remaining GPLv2 only licensed files by relicensing them to GPLv2.0-or-later.
47 lines
1.1 KiB
C++
47 lines
1.1 KiB
C++
// SPDX-FileCopyrightText: Copyright 2020 yuzu Emulator Project
|
|
// SPDX-License-Identifier: GPL-2.0-or-later
|
|
|
|
#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();
|
|
void CallRingControllerDialog();
|
|
|
|
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;
|
|
};
|