From 96178a260536a8d9173763650ac8eca5f38af7cc Mon Sep 17 00:00:00 2001
From: Zackhasacat <tobias@tribble.dev>
Date: Sat, 11 Nov 2023 16:30:16 +0000
Subject: [PATCH] Allow Shoulder Buttons on Controller to act as Tab and Shift
 Tab in menus

---
 apps/openmw/mwgui/keyboardnavigation.cpp | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/apps/openmw/mwgui/keyboardnavigation.cpp b/apps/openmw/mwgui/keyboardnavigation.cpp
index a8fb52c95e..85c7d8ba88 100644
--- a/apps/openmw/mwgui/keyboardnavigation.cpp
+++ b/apps/openmw/mwgui/keyboardnavigation.cpp
@@ -183,6 +183,10 @@ namespace MWGui
                 return switchFocus(D_Down, false);
             case MyGUI::KeyCode::Tab:
                 return switchFocus(MyGUI::InputManager::getInstance().isShiftPressed() ? D_Prev : D_Next, true);
+            case MyGUI::KeyCode::Period:
+                return switchFocus(D_Prev, true);
+            case MyGUI::KeyCode::Slash:
+                return switchFocus(D_Next, true);
             case MyGUI::KeyCode::Return:
             case MyGUI::KeyCode::NumpadEnter:
             case MyGUI::KeyCode::Space: