diff options
Diffstat (limited to 'src')
10 files changed, 55 insertions, 57 deletions
diff --git a/src/yuzu/configuration/configure_debug_controller.cpp b/src/yuzu/configuration/configure_debug_controller.cpp index 31ec48384..9a8de92a1 100644 --- a/src/yuzu/configuration/configure_debug_controller.cpp +++ b/src/yuzu/configuration/configure_debug_controller.cpp | |||
| @@ -2,17 +2,18 @@ | |||
| 2 | // Licensed under GPLv2 or any later version | 2 | // Licensed under GPLv2 or any later version |
| 3 | // Refer to the license.txt file included. | 3 | // Refer to the license.txt file included. |
| 4 | 4 | ||
| 5 | #include "core/core.h" | 5 | #include "core/hid/hid_core.h" |
| 6 | #include "ui_configure_debug_controller.h" | 6 | #include "ui_configure_debug_controller.h" |
| 7 | #include "yuzu/configuration/configure_debug_controller.h" | 7 | #include "yuzu/configuration/configure_debug_controller.h" |
| 8 | #include "yuzu/configuration/configure_input_player.h" | 8 | #include "yuzu/configuration/configure_input_player.h" |
| 9 | 9 | ||
| 10 | ConfigureDebugController::ConfigureDebugController(QWidget* parent, | 10 | ConfigureDebugController::ConfigureDebugController(QWidget* parent, |
| 11 | InputCommon::InputSubsystem* input_subsystem, | 11 | InputCommon::InputSubsystem* input_subsystem, |
| 12 | InputProfiles* profiles, Core::System& system) | 12 | InputProfiles* profiles, |
| 13 | Core::HID::HIDCore& hid_core, bool is_powered_on) | ||
| 13 | : QDialog(parent), ui(std::make_unique<Ui::ConfigureDebugController>()), | 14 | : QDialog(parent), ui(std::make_unique<Ui::ConfigureDebugController>()), |
| 14 | debug_controller( | 15 | debug_controller(new ConfigureInputPlayer(this, 9, nullptr, input_subsystem, profiles, |
| 15 | new ConfigureInputPlayer(this, 9, nullptr, input_subsystem, profiles, system, true)) { | 16 | hid_core, is_powered_on, true)) { |
| 16 | ui->setupUi(this); | 17 | ui->setupUi(this); |
| 17 | 18 | ||
| 18 | ui->controllerLayout->addWidget(debug_controller); | 19 | ui->controllerLayout->addWidget(debug_controller); |
diff --git a/src/yuzu/configuration/configure_debug_controller.h b/src/yuzu/configuration/configure_debug_controller.h index 6e17c5aa0..d716edbc2 100644 --- a/src/yuzu/configuration/configure_debug_controller.h +++ b/src/yuzu/configuration/configure_debug_controller.h | |||
| @@ -13,8 +13,8 @@ class ConfigureInputPlayer; | |||
| 13 | 13 | ||
| 14 | class InputProfiles; | 14 | class InputProfiles; |
| 15 | 15 | ||
| 16 | namespace Core { | 16 | namespace Core::HID { |
| 17 | class System; | 17 | class HIDCore; |
| 18 | } | 18 | } |
| 19 | 19 | ||
| 20 | namespace InputCommon { | 20 | namespace InputCommon { |
| @@ -30,7 +30,8 @@ class ConfigureDebugController : public QDialog { | |||
| 30 | 30 | ||
| 31 | public: | 31 | public: |
| 32 | explicit ConfigureDebugController(QWidget* parent, InputCommon::InputSubsystem* input_subsystem, | 32 | explicit ConfigureDebugController(QWidget* parent, InputCommon::InputSubsystem* input_subsystem, |
| 33 | InputProfiles* profiles, Core::System& system); | 33 | InputProfiles* profiles, Core::HID::HIDCore& hid_core, |
| 34 | bool is_powered_on); | ||
| 34 | ~ConfigureDebugController() override; | 35 | ~ConfigureDebugController() override; |
| 35 | 36 | ||
| 36 | void ApplyConfiguration(); | 37 | void ApplyConfiguration(); |
diff --git a/src/yuzu/configuration/configure_dialog.cpp b/src/yuzu/configuration/configure_dialog.cpp index 1eb9d70e5..642a5f966 100644 --- a/src/yuzu/configuration/configure_dialog.cpp +++ b/src/yuzu/configuration/configure_dialog.cpp | |||
| @@ -74,7 +74,7 @@ ConfigureDialog::ConfigureDialog(QWidget* parent, HotkeyRegistry& registry, | |||
| 74 | hotkeys_tab->Populate(registry); | 74 | hotkeys_tab->Populate(registry); |
| 75 | setWindowFlags(windowFlags() & ~Qt::WindowContextHelpButtonHint); | 75 | setWindowFlags(windowFlags() & ~Qt::WindowContextHelpButtonHint); |
| 76 | 76 | ||
| 77 | input_tab->Initialize(input_subsystem, system_); | 77 | input_tab->Initialize(input_subsystem); |
| 78 | 78 | ||
| 79 | general_tab->SetResetCallback([&] { this->close(); }); | 79 | general_tab->SetResetCallback([&] { this->close(); }); |
| 80 | 80 | ||
diff --git a/src/yuzu/configuration/configure_input.cpp b/src/yuzu/configuration/configure_input.cpp index dece27fde..99450bc7d 100644 --- a/src/yuzu/configuration/configure_input.cpp +++ b/src/yuzu/configuration/configure_input.cpp | |||
| @@ -10,6 +10,8 @@ | |||
| 10 | #include <QTimer> | 10 | #include <QTimer> |
| 11 | 11 | ||
| 12 | #include "core/core.h" | 12 | #include "core/core.h" |
| 13 | #include "core/hid/emulated_controller.h" | ||
| 14 | #include "core/hid/hid_core.h" | ||
| 13 | #include "core/hle/service/am/am.h" | 15 | #include "core/hle/service/am/am.h" |
| 14 | #include "core/hle/service/am/applet_ae.h" | 16 | #include "core/hle/service/am/applet_ae.h" |
| 15 | #include "core/hle/service/am/applet_oe.h" | 17 | #include "core/hle/service/am/applet_oe.h" |
| @@ -73,25 +75,27 @@ ConfigureInput::ConfigureInput(Core::System& system_, QWidget* parent) | |||
| 73 | 75 | ||
| 74 | ConfigureInput::~ConfigureInput() = default; | 76 | ConfigureInput::~ConfigureInput() = default; |
| 75 | 77 | ||
| 76 | void ConfigureInput::Initialize(InputCommon::InputSubsystem* input_subsystem, Core::System& system, | 78 | void ConfigureInput::Initialize(InputCommon::InputSubsystem* input_subsystem, |
| 77 | std::size_t max_players) { | 79 | std::size_t max_players) { |
| 80 | const bool is_powered_on = system.IsPoweredOn(); | ||
| 81 | auto& hid_core = system.HIDCore(); | ||
| 78 | player_controllers = { | 82 | player_controllers = { |
| 79 | new ConfigureInputPlayer(this, 0, ui->consoleInputSettings, input_subsystem, profiles.get(), | 83 | new ConfigureInputPlayer(this, 0, ui->consoleInputSettings, input_subsystem, profiles.get(), |
| 80 | system), | 84 | hid_core, is_powered_on), |
| 81 | new ConfigureInputPlayer(this, 1, ui->consoleInputSettings, input_subsystem, profiles.get(), | 85 | new ConfigureInputPlayer(this, 1, ui->consoleInputSettings, input_subsystem, profiles.get(), |
| 82 | system), | 86 | hid_core, is_powered_on), |
| 83 | new ConfigureInputPlayer(this, 2, ui->consoleInputSettings, input_subsystem, profiles.get(), | 87 | new ConfigureInputPlayer(this, 2, ui->consoleInputSettings, input_subsystem, profiles.get(), |
| 84 | system), | 88 | hid_core, is_powered_on), |
| 85 | new ConfigureInputPlayer(this, 3, ui->consoleInputSettings, input_subsystem, profiles.get(), | 89 | new ConfigureInputPlayer(this, 3, ui->consoleInputSettings, input_subsystem, profiles.get(), |
| 86 | system), | 90 | hid_core, is_powered_on), |
| 87 | new ConfigureInputPlayer(this, 4, ui->consoleInputSettings, input_subsystem, profiles.get(), | 91 | new ConfigureInputPlayer(this, 4, ui->consoleInputSettings, input_subsystem, profiles.get(), |
| 88 | system), | 92 | hid_core, is_powered_on), |
| 89 | new ConfigureInputPlayer(this, 5, ui->consoleInputSettings, input_subsystem, profiles.get(), | 93 | new ConfigureInputPlayer(this, 5, ui->consoleInputSettings, input_subsystem, profiles.get(), |
| 90 | system), | 94 | hid_core, is_powered_on), |
| 91 | new ConfigureInputPlayer(this, 6, ui->consoleInputSettings, input_subsystem, profiles.get(), | 95 | new ConfigureInputPlayer(this, 6, ui->consoleInputSettings, input_subsystem, profiles.get(), |
| 92 | system), | 96 | hid_core, is_powered_on), |
| 93 | new ConfigureInputPlayer(this, 7, ui->consoleInputSettings, input_subsystem, profiles.get(), | 97 | new ConfigureInputPlayer(this, 7, ui->consoleInputSettings, input_subsystem, profiles.get(), |
| 94 | system), | 98 | hid_core, is_powered_on), |
| 95 | }; | 99 | }; |
| 96 | 100 | ||
| 97 | player_tabs = { | 101 | player_tabs = { |
| @@ -147,10 +151,11 @@ void ConfigureInput::Initialize(InputCommon::InputSubsystem* input_subsystem, Co | |||
| 147 | advanced = new ConfigureInputAdvanced(this); | 151 | advanced = new ConfigureInputAdvanced(this); |
| 148 | ui->tabAdvanced->setLayout(new QHBoxLayout(ui->tabAdvanced)); | 152 | ui->tabAdvanced->setLayout(new QHBoxLayout(ui->tabAdvanced)); |
| 149 | ui->tabAdvanced->layout()->addWidget(advanced); | 153 | ui->tabAdvanced->layout()->addWidget(advanced); |
| 154 | |||
| 150 | connect(advanced, &ConfigureInputAdvanced::CallDebugControllerDialog, | 155 | connect(advanced, &ConfigureInputAdvanced::CallDebugControllerDialog, |
| 151 | [this, input_subsystem, &system] { | 156 | [this, input_subsystem, &hid_core, is_powered_on] { |
| 152 | CallConfigureDialog<ConfigureDebugController>(*this, input_subsystem, | 157 | CallConfigureDialog<ConfigureDebugController>( |
| 153 | profiles.get(), system); | 158 | *this, input_subsystem, profiles.get(), hid_core, is_powered_on); |
| 154 | }); | 159 | }); |
| 155 | connect(advanced, &ConfigureInputAdvanced::CallMouseConfigDialog, [this, input_subsystem] { | 160 | connect(advanced, &ConfigureInputAdvanced::CallMouseConfigDialog, [this, input_subsystem] { |
| 156 | CallConfigureDialog<ConfigureMouseAdvanced>(*this, input_subsystem); | 161 | CallConfigureDialog<ConfigureMouseAdvanced>(*this, input_subsystem); |
diff --git a/src/yuzu/configuration/configure_input.h b/src/yuzu/configuration/configure_input.h index 6e5edad58..4cafa3dab 100644 --- a/src/yuzu/configuration/configure_input.h +++ b/src/yuzu/configuration/configure_input.h | |||
| @@ -42,8 +42,7 @@ public: | |||
| 42 | ~ConfigureInput() override; | 42 | ~ConfigureInput() override; |
| 43 | 43 | ||
| 44 | /// Initializes the input dialog with the given input subsystem. | 44 | /// Initializes the input dialog with the given input subsystem. |
| 45 | void Initialize(InputCommon::InputSubsystem* input_subsystem_, Core::System& system, | 45 | void Initialize(InputCommon::InputSubsystem* input_subsystem_, std::size_t max_players = 8); |
| 46 | std::size_t max_players = 8); | ||
| 47 | 46 | ||
| 48 | /// Save all button configurations to settings file. | 47 | /// Save all button configurations to settings file. |
| 49 | void ApplyConfiguration(); | 48 | void ApplyConfiguration(); |
diff --git a/src/yuzu/configuration/configure_input_player.cpp b/src/yuzu/configuration/configure_input_player.cpp index 95a9b8614..76f55eb54 100644 --- a/src/yuzu/configuration/configure_input_player.cpp +++ b/src/yuzu/configuration/configure_input_player.cpp | |||
| @@ -12,7 +12,6 @@ | |||
| 12 | #include <QMessageBox> | 12 | #include <QMessageBox> |
| 13 | #include <QTimer> | 13 | #include <QTimer> |
| 14 | #include "common/param_package.h" | 14 | #include "common/param_package.h" |
| 15 | #include "core/core.h" | ||
| 16 | #include "core/hid/emulated_controller.h" | 15 | #include "core/hid/emulated_controller.h" |
| 17 | #include "core/hid/hid_core.h" | 16 | #include "core/hid/hid_core.h" |
| 18 | #include "core/hid/hid_types.h" | 17 | #include "core/hid/hid_types.h" |
| @@ -134,18 +133,17 @@ QString ConfigureInputPlayer::AnalogToText(const Common::ParamPackage& param, | |||
| 134 | ConfigureInputPlayer::ConfigureInputPlayer(QWidget* parent, std::size_t player_index, | 133 | ConfigureInputPlayer::ConfigureInputPlayer(QWidget* parent, std::size_t player_index, |
| 135 | QWidget* bottom_row, | 134 | QWidget* bottom_row, |
| 136 | InputCommon::InputSubsystem* input_subsystem_, | 135 | InputCommon::InputSubsystem* input_subsystem_, |
| 137 | InputProfiles* profiles_, Core::System& system_, | 136 | InputProfiles* profiles_, Core::HID::HIDCore& hid_core_, |
| 138 | bool debug) | 137 | bool is_powered_on_, bool debug) |
| 139 | : QWidget(parent), ui(std::make_unique<Ui::ConfigureInputPlayer>()), player_index(player_index), | 138 | : QWidget(parent), ui(std::make_unique<Ui::ConfigureInputPlayer>()), player_index(player_index), |
| 140 | debug(debug), input_subsystem{input_subsystem_}, profiles(profiles_), | 139 | debug(debug), is_powered_on{is_powered_on_}, input_subsystem{input_subsystem_}, |
| 141 | timeout_timer(std::make_unique<QTimer>()), poll_timer(std::make_unique<QTimer>()), | 140 | profiles(profiles_), timeout_timer(std::make_unique<QTimer>()), |
| 142 | bottom_row(bottom_row), system{system_} { | 141 | poll_timer(std::make_unique<QTimer>()), bottom_row(bottom_row), hid_core{hid_core_} { |
| 143 | |||
| 144 | if (player_index == 0) { | 142 | if (player_index == 0) { |
| 145 | auto* emulated_controller_p1 = | 143 | auto* emulated_controller_p1 = |
| 146 | system.HIDCore().GetEmulatedController(Core::HID::NpadIdType::Player1); | 144 | hid_core.GetEmulatedController(Core::HID::NpadIdType::Player1); |
| 147 | auto* emulated_controller_hanheld = | 145 | auto* emulated_controller_hanheld = |
| 148 | system.HIDCore().GetEmulatedController(Core::HID::NpadIdType::Handheld); | 146 | hid_core.GetEmulatedController(Core::HID::NpadIdType::Handheld); |
| 149 | emulated_controller_p1->SaveCurrentConfig(); | 147 | emulated_controller_p1->SaveCurrentConfig(); |
| 150 | emulated_controller_p1->EnableConfiguration(); | 148 | emulated_controller_p1->EnableConfiguration(); |
| 151 | emulated_controller_hanheld->SaveCurrentConfig(); | 149 | emulated_controller_hanheld->SaveCurrentConfig(); |
| @@ -157,7 +155,7 @@ ConfigureInputPlayer::ConfigureInputPlayer(QWidget* parent, std::size_t player_i | |||
| 157 | emulated_controller = emulated_controller_p1; | 155 | emulated_controller = emulated_controller_p1; |
| 158 | } | 156 | } |
| 159 | } else { | 157 | } else { |
| 160 | emulated_controller = system_.HIDCore().GetEmulatedControllerByIndex(player_index); | 158 | emulated_controller = hid_core.GetEmulatedControllerByIndex(player_index); |
| 161 | emulated_controller->SaveCurrentConfig(); | 159 | emulated_controller->SaveCurrentConfig(); |
| 162 | emulated_controller->EnableConfiguration(); | 160 | emulated_controller->EnableConfiguration(); |
| 163 | } | 161 | } |
| @@ -487,9 +485,9 @@ ConfigureInputPlayer::ConfigureInputPlayer(QWidget* parent, std::size_t player_i | |||
| 487 | 485 | ||
| 488 | if (player_index == 0) { | 486 | if (player_index == 0) { |
| 489 | auto* emulated_controller_p1 = | 487 | auto* emulated_controller_p1 = |
| 490 | system.HIDCore().GetEmulatedController(Core::HID::NpadIdType::Player1); | 488 | hid_core.GetEmulatedController(Core::HID::NpadIdType::Player1); |
| 491 | auto* emulated_controller_hanheld = | 489 | auto* emulated_controller_hanheld = |
| 492 | system.HIDCore().GetEmulatedController(Core::HID::NpadIdType::Handheld); | 490 | hid_core.GetEmulatedController(Core::HID::NpadIdType::Handheld); |
| 493 | bool is_connected = emulated_controller->IsConnected(true); | 491 | bool is_connected = emulated_controller->IsConnected(true); |
| 494 | 492 | ||
| 495 | emulated_controller_p1->SetNpadStyleIndex(type); | 493 | emulated_controller_p1->SetNpadStyleIndex(type); |
| @@ -547,9 +545,9 @@ ConfigureInputPlayer::ConfigureInputPlayer(QWidget* parent, std::size_t player_i | |||
| 547 | ConfigureInputPlayer::~ConfigureInputPlayer() { | 545 | ConfigureInputPlayer::~ConfigureInputPlayer() { |
| 548 | if (player_index == 0) { | 546 | if (player_index == 0) { |
| 549 | auto* emulated_controller_p1 = | 547 | auto* emulated_controller_p1 = |
| 550 | system.HIDCore().GetEmulatedController(Core::HID::NpadIdType::Player1); | 548 | hid_core.GetEmulatedController(Core::HID::NpadIdType::Player1); |
| 551 | auto* emulated_controller_hanheld = | 549 | auto* emulated_controller_hanheld = |
| 552 | system.HIDCore().GetEmulatedController(Core::HID::NpadIdType::Handheld); | 550 | hid_core.GetEmulatedController(Core::HID::NpadIdType::Handheld); |
| 553 | emulated_controller_p1->DisableConfiguration(); | 551 | emulated_controller_p1->DisableConfiguration(); |
| 554 | emulated_controller_hanheld->DisableConfiguration(); | 552 | emulated_controller_hanheld->DisableConfiguration(); |
| 555 | } else { | 553 | } else { |
| @@ -560,9 +558,9 @@ ConfigureInputPlayer::~ConfigureInputPlayer() { | |||
| 560 | void ConfigureInputPlayer::ApplyConfiguration() { | 558 | void ConfigureInputPlayer::ApplyConfiguration() { |
| 561 | if (player_index == 0) { | 559 | if (player_index == 0) { |
| 562 | auto* emulated_controller_p1 = | 560 | auto* emulated_controller_p1 = |
| 563 | system.HIDCore().GetEmulatedController(Core::HID::NpadIdType::Player1); | 561 | hid_core.GetEmulatedController(Core::HID::NpadIdType::Player1); |
| 564 | auto* emulated_controller_hanheld = | 562 | auto* emulated_controller_hanheld = |
| 565 | system.HIDCore().GetEmulatedController(Core::HID::NpadIdType::Handheld); | 563 | hid_core.GetEmulatedController(Core::HID::NpadIdType::Handheld); |
| 566 | emulated_controller_p1->DisableConfiguration(); | 564 | emulated_controller_p1->DisableConfiguration(); |
| 567 | emulated_controller_p1->SaveCurrentConfig(); | 565 | emulated_controller_p1->SaveCurrentConfig(); |
| 568 | emulated_controller_p1->EnableConfiguration(); | 566 | emulated_controller_p1->EnableConfiguration(); |
| @@ -846,12 +844,11 @@ void ConfigureInputPlayer::SetConnectableControllers() { | |||
| 846 | } | 844 | } |
| 847 | }; | 845 | }; |
| 848 | 846 | ||
| 849 | if (!system.IsPoweredOn()) { | 847 | if (!is_powered_on) { |
| 850 | add_controllers(true); | 848 | add_controllers(true); |
| 851 | return; | ||
| 852 | } | 849 | } |
| 853 | 850 | ||
| 854 | add_controllers(false, system.HIDCore().GetSupportedStyleTag()); | 851 | add_controllers(false, hid_core.GetSupportedStyleTag()); |
| 855 | } | 852 | } |
| 856 | 853 | ||
| 857 | Core::HID::NpadStyleIndex ConfigureInputPlayer::GetControllerTypeFromIndex(int index) const { | 854 | Core::HID::NpadStyleIndex ConfigureInputPlayer::GetControllerTypeFromIndex(int index) const { |
diff --git a/src/yuzu/configuration/configure_input_player.h b/src/yuzu/configuration/configure_input_player.h index 7bff4b196..47df6b3d3 100644 --- a/src/yuzu/configuration/configure_input_player.h +++ b/src/yuzu/configuration/configure_input_player.h | |||
| @@ -29,10 +29,6 @@ class QWidget; | |||
| 29 | 29 | ||
| 30 | class InputProfiles; | 30 | class InputProfiles; |
| 31 | 31 | ||
| 32 | namespace Core { | ||
| 33 | class System; | ||
| 34 | } | ||
| 35 | |||
| 36 | namespace InputCommon { | 32 | namespace InputCommon { |
| 37 | class InputSubsystem; | 33 | class InputSubsystem; |
| 38 | } | 34 | } |
| @@ -45,11 +41,8 @@ namespace Ui { | |||
| 45 | class ConfigureInputPlayer; | 41 | class ConfigureInputPlayer; |
| 46 | } | 42 | } |
| 47 | 43 | ||
| 48 | namespace Core { | ||
| 49 | class System; | ||
| 50 | } | ||
| 51 | |||
| 52 | namespace Core::HID { | 44 | namespace Core::HID { |
| 45 | class HIDCore; | ||
| 53 | class EmulatedController; | 46 | class EmulatedController; |
| 54 | enum class NpadStyleIndex : u8; | 47 | enum class NpadStyleIndex : u8; |
| 55 | } // namespace Core::HID | 48 | } // namespace Core::HID |
| @@ -60,8 +53,8 @@ class ConfigureInputPlayer : public QWidget { | |||
| 60 | public: | 53 | public: |
| 61 | explicit ConfigureInputPlayer(QWidget* parent, std::size_t player_index, QWidget* bottom_row, | 54 | explicit ConfigureInputPlayer(QWidget* parent, std::size_t player_index, QWidget* bottom_row, |
| 62 | InputCommon::InputSubsystem* input_subsystem_, | 55 | InputCommon::InputSubsystem* input_subsystem_, |
| 63 | InputProfiles* profiles_, Core::System& system_, | 56 | InputProfiles* profiles_, Core::HID::HIDCore& hid_core_, |
| 64 | bool debug = false); | 57 | bool is_powered_on_, bool debug = false); |
| 65 | ~ConfigureInputPlayer() override; | 58 | ~ConfigureInputPlayer() override; |
| 66 | 59 | ||
| 67 | /// Save all button configurations to settings file. | 60 | /// Save all button configurations to settings file. |
| @@ -173,6 +166,7 @@ private: | |||
| 173 | 166 | ||
| 174 | std::size_t player_index; | 167 | std::size_t player_index; |
| 175 | bool debug; | 168 | bool debug; |
| 169 | bool is_powered_on; | ||
| 176 | 170 | ||
| 177 | InputCommon::InputSubsystem* input_subsystem; | 171 | InputCommon::InputSubsystem* input_subsystem; |
| 178 | 172 | ||
| @@ -228,5 +222,5 @@ private: | |||
| 228 | /// parent of the widget to this widget (but thats fine). | 222 | /// parent of the widget to this widget (but thats fine). |
| 229 | QWidget* bottom_row; | 223 | QWidget* bottom_row; |
| 230 | 224 | ||
| 231 | Core::System& system; | 225 | Core::HID::HIDCore& hid_core; |
| 232 | }; | 226 | }; |
diff --git a/src/yuzu/configuration/configure_input_player_widget.cpp b/src/yuzu/configuration/configure_input_player_widget.cpp index af65cf64c..ff40f57f5 100644 --- a/src/yuzu/configuration/configure_input_player_widget.cpp +++ b/src/yuzu/configuration/configure_input_player_widget.cpp | |||
| @@ -6,7 +6,8 @@ | |||
| 6 | #include <QMenu> | 6 | #include <QMenu> |
| 7 | #include <QPainter> | 7 | #include <QPainter> |
| 8 | #include <QTimer> | 8 | #include <QTimer> |
| 9 | #include "core/core.h" | 9 | |
| 10 | #include "core/hid/emulated_controller.h" | ||
| 10 | #include "yuzu/configuration/configure_input_player_widget.h" | 11 | #include "yuzu/configuration/configure_input_player_widget.h" |
| 11 | 12 | ||
| 12 | PlayerControlPreview::PlayerControlPreview(QWidget* parent) : QFrame(parent) { | 13 | PlayerControlPreview::PlayerControlPreview(QWidget* parent) : QFrame(parent) { |
diff --git a/src/yuzu/configuration/configure_input_player_widget.h b/src/yuzu/configuration/configure_input_player_widget.h index ee217f3c9..4cd5c3be0 100644 --- a/src/yuzu/configuration/configure_input_player_widget.h +++ b/src/yuzu/configuration/configure_input_player_widget.h | |||
| @@ -7,10 +7,10 @@ | |||
| 7 | #include <array> | 7 | #include <array> |
| 8 | #include <QFrame> | 8 | #include <QFrame> |
| 9 | #include <QPointer> | 9 | #include <QPointer> |
| 10 | |||
| 10 | #include "common/input.h" | 11 | #include "common/input.h" |
| 11 | #include "common/settings.h" | 12 | #include "common/settings_input.h" |
| 12 | #include "core/hid/emulated_controller.h" | 13 | #include "core/hid/emulated_controller.h" |
| 13 | #include "core/hid/hid_core.h" | ||
| 14 | #include "core/hid/hid_types.h" | 14 | #include "core/hid/hid_types.h" |
| 15 | 15 | ||
| 16 | class QLabel; | 16 | class QLabel; |
diff --git a/src/yuzu/configuration/configure_input_profile_dialog.cpp b/src/yuzu/configuration/configure_input_profile_dialog.cpp index cd5a88cea..17bbe6b61 100644 --- a/src/yuzu/configuration/configure_input_profile_dialog.cpp +++ b/src/yuzu/configuration/configure_input_profile_dialog.cpp | |||
| @@ -11,8 +11,8 @@ ConfigureInputProfileDialog::ConfigureInputProfileDialog( | |||
| 11 | QWidget* parent, InputCommon::InputSubsystem* input_subsystem, InputProfiles* profiles, | 11 | QWidget* parent, InputCommon::InputSubsystem* input_subsystem, InputProfiles* profiles, |
| 12 | Core::System& system) | 12 | Core::System& system) |
| 13 | : QDialog(parent), ui(std::make_unique<Ui::ConfigureInputProfileDialog>()), | 13 | : QDialog(parent), ui(std::make_unique<Ui::ConfigureInputProfileDialog>()), |
| 14 | profile_widget( | 14 | profile_widget(new ConfigureInputPlayer(this, 9, nullptr, input_subsystem, profiles, |
| 15 | new ConfigureInputPlayer(this, 9, nullptr, input_subsystem, profiles, system, false)) { | 15 | system.HIDCore(), system.IsPoweredOn(), false)) { |
| 16 | ui->setupUi(this); | 16 | ui->setupUi(this); |
| 17 | 17 | ||
| 18 | ui->controllerLayout->addWidget(profile_widget); | 18 | ui->controllerLayout->addWidget(profile_widget); |