configure_debug_controller.h 956 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. // SPDX-FileCopyrightText: Copyright 2020 yuzu Emulator Project
  2. // SPDX-License-Identifier: GPL-2.0-or-later
  3. #pragma once
  4. #include <memory>
  5. #include <QDialog>
  6. class QPushButton;
  7. class ConfigureInputPlayer;
  8. class InputProfiles;
  9. namespace Core::HID {
  10. class HIDCore;
  11. }
  12. namespace InputCommon {
  13. class InputSubsystem;
  14. }
  15. namespace Ui {
  16. class ConfigureDebugController;
  17. }
  18. class ConfigureDebugController : public QDialog {
  19. Q_OBJECT
  20. public:
  21. explicit ConfigureDebugController(QWidget* parent, InputCommon::InputSubsystem* input_subsystem,
  22. InputProfiles* profiles, Core::HID::HIDCore& hid_core,
  23. bool is_powered_on);
  24. ~ConfigureDebugController() override;
  25. void ApplyConfiguration();
  26. private:
  27. void changeEvent(QEvent* event) override;
  28. void RetranslateUI();
  29. std::unique_ptr<Ui::ConfigureDebugController> ui;
  30. ConfigureInputPlayer* debug_controller;
  31. };