From 77e17743f7d216d3d5d6a8392e735b7deb3a655b Mon Sep 17 00:00:00 2001 From: Andrew Lanzone Date: Mon, 12 May 2025 22:37:11 -0700 Subject: [PATCH] Only use bumpers to turn pages in books --- apps/openmw/mwgui/bookwindow.cpp | 23 +++-------------------- 1 file changed, 3 insertions(+), 20 deletions(-) diff --git a/apps/openmw/mwgui/bookwindow.cpp b/apps/openmw/mwgui/bookwindow.cpp index 90d3c4143a..79cfb9fa88 100644 --- a/apps/openmw/mwgui/bookwindow.cpp +++ b/apps/openmw/mwgui/bookwindow.cpp @@ -231,31 +231,14 @@ namespace MWGui if (mTakeButton->getVisible()) onTakeButtonClicked(mTakeButton); - return true; } else if (arg.button == SDL_CONTROLLER_BUTTON_B) - { onCloseButtonClicked(mCloseButton); - return true; - } - else if (arg.button == SDL_CONTROLLER_BUTTON_DPAD_UP || - arg.button == SDL_CONTROLLER_BUTTON_DPAD_DOWN) - { - return true; - } - else if (arg.button == SDL_CONTROLLER_BUTTON_LEFTSHOULDER || - arg.button == SDL_CONTROLLER_BUTTON_DPAD_LEFT) - { + else if (arg.button == SDL_CONTROLLER_BUTTON_LEFTSHOULDER) prevPage(); - return true; - } - else if (arg.button == SDL_CONTROLLER_BUTTON_RIGHTSHOULDER || - arg.button == SDL_CONTROLLER_BUTTON_DPAD_RIGHT) - { + else if (arg.button == SDL_CONTROLLER_BUTTON_RIGHTSHOULDER) nextPage(); - return true; - } - return false; + return true; } }