mirror of
https://github.com/libretro/scummvm.git
synced 2025-02-03 01:15:58 +00:00
MM: MM1: More Select keybind action handling
This commit is contained in:
parent
03895d242e
commit
4b9737a497
@ -119,9 +119,16 @@ bool GameMessages::msgAction(const ActionMessage &msg) {
|
|||||||
if (endDelay())
|
if (endDelay())
|
||||||
return true;
|
return true;
|
||||||
|
|
||||||
if (msg._action == KEYBIND_ESCAPE) {
|
switch (msg._action) {
|
||||||
|
case KEYBIND_ESCAPE:
|
||||||
close();
|
close();
|
||||||
return true;
|
return true;
|
||||||
|
case KEYBIND_SELECT:
|
||||||
|
close();
|
||||||
|
_ynCallback();
|
||||||
|
return true;
|
||||||
|
default:
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -65,9 +65,15 @@ bool Market::msgAction(const ActionMessage &msg) {
|
|||||||
if (endDelay())
|
if (endDelay())
|
||||||
return true;
|
return true;
|
||||||
|
|
||||||
if (msg._action == KEYBIND_ESCAPE) {
|
switch (msg._action) {
|
||||||
|
case KEYBIND_ESCAPE:
|
||||||
leave();
|
leave();
|
||||||
return true;
|
return true;
|
||||||
|
case KEYBIND_SELECT:
|
||||||
|
buyFood();
|
||||||
|
return true;
|
||||||
|
default:
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
return false;
|
return false;
|
||||||
|
@ -108,10 +108,20 @@ bool GameMessages::msgKeypress(const KeypressMessage &msg) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
bool GameMessages::msgAction(const ActionMessage &msg) {
|
bool GameMessages::msgAction(const ActionMessage &msg) {
|
||||||
if (msg._action == KEYBIND_ESCAPE && g_events->focusedView() == this) {
|
if (g_events->focusedView()) {
|
||||||
close();
|
switch (msg._action) {
|
||||||
g_events->drawElements();
|
case KEYBIND_ESCAPE:
|
||||||
return true;
|
close();
|
||||||
|
g_events->drawElements();
|
||||||
|
return true;
|
||||||
|
case KEYBIND_SELECT:
|
||||||
|
close();
|
||||||
|
g_events->drawElements();
|
||||||
|
_ynCallback();
|
||||||
|
return true;
|
||||||
|
default:
|
||||||
|
break;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return false;
|
return false;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user