summaryrefslogtreecommitdiffstats
path: root/src/core/hle/service/hid
diff options
context:
space:
mode:
authorlat9nq <22451773+lat9nq@users.noreply.github.com>2023-08-21 22:03:30 +0200
committerlat9nq <22451773+lat9nq@users.noreply.github.com>2023-08-22 22:07:52 +0200
commit387ede76d2e1e427f6722cbe19a018c95d762748 (patch)
tree49f5a327eac0238c0e5197550f4753da592212b7 /src/core/hle/service/hid
parentshared_widget: Implement radio groups (diff)
downloadyuzu-387ede76d2e1e427f6722cbe19a018c95d762748.tar
yuzu-387ede76d2e1e427f6722cbe19a018c95d762748.tar.gz
yuzu-387ede76d2e1e427f6722cbe19a018c95d762748.tar.bz2
yuzu-387ede76d2e1e427f6722cbe19a018c95d762748.tar.lz
yuzu-387ede76d2e1e427f6722cbe19a018c95d762748.tar.xz
yuzu-387ede76d2e1e427f6722cbe19a018c95d762748.tar.zst
yuzu-387ede76d2e1e427f6722cbe19a018c95d762748.zip
Diffstat (limited to 'src/core/hle/service/hid')
-rw-r--r--src/core/hle/service/hid/controllers/gesture.cpp2
-rw-r--r--src/core/hle/service/hid/controllers/npad.cpp2
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 03432f7cb..47d4c08fc 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()) {
+ if (Settings::values.use_docked_mode.GetValue() == Settings::ConsoleMode::Docked) {
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 28818c813..ba752d472 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()) {
+ if (Settings::values.use_docked_mode.GetValue() == Settings::ConsoleMode::Docked) {
return false;
}