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:
parent
65bab3858a
commit
77e17743f7
1 changed files with 3 additions and 20 deletions
|
@ -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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue