2020-12-28 16:15:37 +01:00
|
|
|
// Copyright 2020 yuzu Emulator Project
|
|
|
|
// Licensed under GPLv2 or any later version
|
|
|
|
// Refer to the license.txt file included.
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <memory>
|
|
|
|
#include <QDialog>
|
|
|
|
|
|
|
|
class QPushButton;
|
|
|
|
|
|
|
|
class ConfigureInputPlayer;
|
|
|
|
|
|
|
|
class InputProfiles;
|
|
|
|
|
2021-11-15 02:13:48 +01:00
|
|
|
namespace Core::HID {
|
|
|
|
class HIDCore;
|
2021-10-09 02:29:53 +02:00
|
|
|
}
|
|
|
|
|
2020-12-28 16:15:37 +01:00
|
|
|
namespace InputCommon {
|
|
|
|
class InputSubsystem;
|
|
|
|
}
|
|
|
|
|
|
|
|
namespace Ui {
|
|
|
|
class ConfigureDebugController;
|
|
|
|
}
|
|
|
|
|
|
|
|
class ConfigureDebugController : public QDialog {
|
|
|
|
Q_OBJECT
|
|
|
|
|
|
|
|
public:
|
|
|
|
explicit ConfigureDebugController(QWidget* parent, InputCommon::InputSubsystem* input_subsystem,
|
2021-11-15 02:13:48 +01:00
|
|
|
InputProfiles* profiles, Core::HID::HIDCore& hid_core,
|
|
|
|
bool is_powered_on);
|
2020-12-28 16:15:37 +01:00
|
|
|
~ConfigureDebugController() override;
|
|
|
|
|
|
|
|
void ApplyConfiguration();
|
|
|
|
|
|
|
|
private:
|
|
|
|
void changeEvent(QEvent* event) override;
|
|
|
|
void RetranslateUI();
|
|
|
|
|
|
|
|
std::unique_ptr<Ui::ConfigureDebugController> ui;
|
|
|
|
|
|
|
|
ConfigureInputPlayer* debug_controller;
|
|
|
|
};
|