aboutsummaryrefslogtreecommitdiff
path: root/src/yuzu/util
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
commit47ca44ad1d37c26fb371ac62dddf7123512567ae (patch)
tree067ca69c73a313831b441103d9855983a602d981 /src/yuzu/util
parent4a497fc961e0e174dc7c9014a0e90493fc0be78b (diff)
yuzu: Add setting to disable controller navigation
Diffstat (limited to 'src/yuzu/util')
-rw-r--r--src/yuzu/util/controller_navigation.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/yuzu/util/controller_navigation.cpp b/src/yuzu/util/controller_navigation.cpp
index 86fb28b9fa..c2b13123d3 100644
--- a/src/yuzu/util/controller_navigation.cpp
+++ b/src/yuzu/util/controller_navigation.cpp
@@ -40,6 +40,9 @@ void ControllerNavigation::TriggerButton(Settings::NativeButton::Values native_b
void ControllerNavigation::ControllerUpdateEvent(Core::HID::ControllerTriggerType type) {
std::lock_guard lock{mutex};
+ if (!Settings::values.controller_navigation) {
+ return;
+ }
if (type == Core::HID::ControllerTriggerType::Button) {
ControllerUpdateButton();
return;