1
0
Fork 0
mirror of https://github.com/OpenMW/openmw.git synced 2025-10-22 17: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())
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;
}
}