diff options
author | lat9nq <22451773+lat9nq@users.noreply.github.com> | 2023-08-23 03:58:23 +0200 |
---|---|---|
committer | lat9nq <22451773+lat9nq@users.noreply.github.com> | 2023-08-23 03:58:23 +0200 |
commit | 3c45452fae7f33d0534c144c5f588ef98f0a1346 (patch) | |
tree | 02ba43c8405ae2ca8b80940653cb558d0db6191a /src/core/hle/service/hid | |
parent | settings: Add docked mode helper function (diff) | |
download | yuzu-3c45452fae7f33d0534c144c5f588ef98f0a1346.tar yuzu-3c45452fae7f33d0534c144c5f588ef98f0a1346.tar.gz yuzu-3c45452fae7f33d0534c144c5f588ef98f0a1346.tar.bz2 yuzu-3c45452fae7f33d0534c144c5f588ef98f0a1346.tar.lz yuzu-3c45452fae7f33d0534c144c5f588ef98f0a1346.tar.xz yuzu-3c45452fae7f33d0534c144c5f588ef98f0a1346.tar.zst yuzu-3c45452fae7f33d0534c144c5f588ef98f0a1346.zip |
Diffstat (limited to 'src/core/hle/service/hid')
-rw-r--r-- | src/core/hle/service/hid/controllers/gesture.cpp | 2 | ||||
-rw-r--r-- | src/core/hle/service/hid/controllers/npad.cpp | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/core/hle/service/hid/controllers/gesture.cpp b/src/core/hle/service/hid/controllers/gesture.cpp index 47d4c08fc..63eecd42b 100644 --- a/src/core/hle/service/hid/controllers/gesture.cpp +++ b/src/core/hle/service/hid/controllers/gesture.cpp @@ -331,7 +331,7 @@ Controller_Gesture::GestureProperties Controller_Gesture::GetGestureProperties() }; // Hack: There is no touch in docked but games still allow it - if (Settings::values.use_docked_mode.GetValue() == Settings::ConsoleMode::Docked) { + if (Settings::IsDockedMode()) { gesture.points[id] = { .x = static_cast<s32>(active_x * Layout::ScreenDocked::Width), .y = static_cast<s32>(active_y * Layout::ScreenDocked::Height), diff --git a/src/core/hle/service/hid/controllers/npad.cpp b/src/core/hle/service/hid/controllers/npad.cpp index ba752d472..3b349b4c4 100644 --- a/src/core/hle/service/hid/controllers/npad.cpp +++ b/src/core/hle/service/hid/controllers/npad.cpp @@ -1518,7 +1518,7 @@ bool Controller_NPad::IsControllerSupported(Core::HID::NpadStyleIndex controller return false; } // Handheld shouldn't be supported in docked mode - if (Settings::values.use_docked_mode.GetValue() == Settings::ConsoleMode::Docked) { + if (Settings::IsDockedMode()) { return false; } |