1
0
Fork 0
mirror of https://github.com/OpenMW/openmw.git synced 2025-10-22 20:26:36 +00:00

Only use bumpers to turn pages in books

This commit is contained in:
Andrew Lanzone 2025-05-12 22:37:11 -07:00
parent 65bab3858a
commit 77e17743f7

View file

@ -231,31 +231,14 @@ namespace MWGui
if (mTakeButton->getVisible()) if (mTakeButton->getVisible())
onTakeButtonClicked(mTakeButton); onTakeButtonClicked(mTakeButton);
return true;
} }
else if (arg.button == SDL_CONTROLLER_BUTTON_B) else if (arg.button == SDL_CONTROLLER_BUTTON_B)
{
onCloseButtonClicked(mCloseButton); onCloseButtonClicked(mCloseButton);
return true; else if (arg.button == SDL_CONTROLLER_BUTTON_LEFTSHOULDER)
}
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)
{
prevPage(); prevPage();
return true; else if (arg.button == SDL_CONTROLLER_BUTTON_RIGHTSHOULDER)
}
else if (arg.button == SDL_CONTROLLER_BUTTON_RIGHTSHOULDER ||
arg.button == SDL_CONTROLLER_BUTTON_DPAD_RIGHT)
{
nextPage(); nextPage();
return true;
}
return false; return true;
} }
} }