mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-15 14:18:37 +00:00
allow for using up/down in menus
svn-id: r28996
This commit is contained in:
parent
3d4f10a302
commit
4436433cf6
@ -81,12 +81,21 @@ bool Troll::getMenuSel(const char *szMenu, int *iSel, int nSel) {
|
||||
inventory();
|
||||
return false;
|
||||
break;
|
||||
case Common::KEYCODE_DOWN:
|
||||
case Common::KEYCODE_SPACE:
|
||||
*iSel += 1;
|
||||
|
||||
if (*iSel == nSel)
|
||||
*iSel = IDI_TRO_SEL_OPTION_1;
|
||||
|
||||
drawMenu(szMenu, *iSel);
|
||||
break;
|
||||
case Common::KEYCODE_UP:
|
||||
*iSel -= 1;
|
||||
|
||||
if (*iSel == IDI_TRO_SEL_OPTION_1 - 1)
|
||||
*iSel = nSel - 1;
|
||||
|
||||
drawMenu(szMenu, *iSel);
|
||||
break;
|
||||
case Common::KEYCODE_RETURN:
|
||||
|
Loading…
Reference in New Issue
Block a user