summaryrefslogtreecommitdiff
path: root/src/yuzu/hotkeys.cpp
diff options
context:
space:
mode:
authorgerman77 <juangerman-13@hotmail.com>2022-01-23 21:08:49 -0600
committergerman77 <juangerman-13@hotmail.com>2022-01-23 21:08:49 -0600
commitb998aa5504581a7d17d977e8e61501f2109561e9 (patch)
tree067ca69c73a313831b441103d9855983a602d981 /src/yuzu/hotkeys.cpp
parent2136ebccd65a27bc4aa64e5f9174abd994247641 (diff)
yuzu: Add setting to disable controller navigation
Diffstat (limited to 'src/yuzu/hotkeys.cpp')
-rw-r--r--src/yuzu/hotkeys.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/yuzu/hotkeys.cpp b/src/yuzu/hotkeys.cpp
index d96497c4e..6ed9611c7 100644
--- a/src/yuzu/hotkeys.cpp
+++ b/src/yuzu/hotkeys.cpp
@@ -190,6 +190,9 @@ void ControllerShortcut::ControllerUpdateEvent(Core::HID::ControllerTriggerType
if (type != Core::HID::ControllerTriggerType::Button) {
return;
}
+ if (!Settings::values.controller_navigation) {
+ return;
+ }
if (button_sequence.npad.raw == Core::HID::NpadButton::None &&
button_sequence.capture.raw == 0 && button_sequence.home.raw == 0) {
return;