diff options
| author | 2023-08-22 21:58:23 -0400 | |
|---|---|---|
| committer | 2023-08-22 21:58:23 -0400 | |
| commit | 3c45452fae7f33d0534c144c5f588ef98f0a1346 (patch) | |
| tree | 02ba43c8405ae2ca8b80940653cb558d0db6191a /src/core/frontend/applets | |
| parent | settings: Add docked mode helper function (diff) | |
| download | yuzu-3c45452fae7f33d0534c144c5f588ef98f0a1346.tar.gz yuzu-3c45452fae7f33d0534c144c5f588ef98f0a1346.tar.xz yuzu-3c45452fae7f33d0534c144c5f588ef98f0a1346.zip | |
general: Use console mode helper across project
Diffstat (limited to 'src/core/frontend/applets')
| -rw-r--r-- | src/core/frontend/applets/controller.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/core/frontend/applets/controller.cpp b/src/core/frontend/applets/controller.cpp index 4c0c5434c..27755cb58 100644 --- a/src/core/frontend/applets/controller.cpp +++ b/src/core/frontend/applets/controller.cpp | |||
| @@ -3,6 +3,7 @@ | |||
| 3 | 3 | ||
| 4 | #include "common/assert.h" | 4 | #include "common/assert.h" |
| 5 | #include "common/logging/log.h" | 5 | #include "common/logging/log.h" |
| 6 | #include "common/settings.h" | ||
| 6 | #include "common/settings_enums.h" | 7 | #include "common/settings_enums.h" |
| 7 | #include "core/frontend/applets/controller.h" | 8 | #include "core/frontend/applets/controller.h" |
| 8 | #include "core/hid/emulated_controller.h" | 9 | #include "core/hid/emulated_controller.h" |
| @@ -63,7 +64,7 @@ void DefaultControllerApplet::ReconfigureControllers(ReconfigureCallback callbac | |||
| 63 | controller->Connect(true); | 64 | controller->Connect(true); |
| 64 | } | 65 | } |
| 65 | } else if (index == 0 && parameters.enable_single_mode && parameters.allow_handheld && | 66 | } else if (index == 0 && parameters.enable_single_mode && parameters.allow_handheld && |
| 66 | Settings::values.use_docked_mode.GetValue() == Settings::ConsoleMode::Handheld) { | 67 | !Settings::IsDockedMode()) { |
| 67 | // We should *never* reach here under any normal circumstances. | 68 | // We should *never* reach here under any normal circumstances. |
| 68 | controller->SetNpadStyleIndex(Core::HID::NpadStyleIndex::Handheld); | 69 | controller->SetNpadStyleIndex(Core::HID::NpadStyleIndex::Handheld); |
| 69 | controller->Connect(true); | 70 | controller->Connect(true); |