2022-04-23 04:59:50 -04:00
|
|
|
// SPDX-FileCopyrightText: Copyright 2020 yuzu Emulator Project
|
|
|
|
// SPDX-License-Identifier: GPL-2.0-or-later
|
2020-07-22 10:39:53 -04:00
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <memory>
|
|
|
|
#include <QDialog>
|
|
|
|
|
|
|
|
class QPushButton;
|
|
|
|
|
2020-10-27 13:33:25 -04:00
|
|
|
class ConfigureInputPlayer;
|
|
|
|
|
2020-09-23 09:52:25 -04:00
|
|
|
class InputProfiles;
|
|
|
|
|
2021-11-04 21:54:22 -06:00
|
|
|
namespace Core::HID {
|
|
|
|
class HIDCore;
|
2021-09-02 21:40:55 -04:00
|
|
|
}
|
|
|
|
|
2020-08-27 15:16:47 -04:00
|
|
|
namespace InputCommon {
|
|
|
|
class InputSubsystem;
|
|
|
|
}
|
|
|
|
|
2020-07-22 10:39:53 -04:00
|
|
|
namespace Ui {
|
|
|
|
class ConfigureDebugController;
|
|
|
|
}
|
|
|
|
|
|
|
|
class ConfigureDebugController : public QDialog {
|
|
|
|
Q_OBJECT
|
|
|
|
|
|
|
|
public:
|
2020-09-23 09:52:25 -04:00
|
|
|
explicit ConfigureDebugController(QWidget* parent, InputCommon::InputSubsystem* input_subsystem,
|
2021-11-04 21:54:22 -06:00
|
|
|
InputProfiles* profiles, Core::HID::HIDCore& hid_core,
|
|
|
|
bool is_powered_on);
|
2020-07-22 10:39:53 -04:00
|
|
|
~ConfigureDebugController() override;
|
|
|
|
|
|
|
|
void ApplyConfiguration();
|
|
|
|
|
|
|
|
private:
|
|
|
|
void changeEvent(QEvent* event) override;
|
|
|
|
void RetranslateUI();
|
|
|
|
|
|
|
|
std::unique_ptr<Ui::ConfigureDebugController> ui;
|
2020-08-15 15:26:29 -04:00
|
|
|
|
|
|
|
ConfigureInputPlayer* debug_controller;
|
2020-07-22 10:39:53 -04:00
|
|
|
};
|