aboutsummaryrefslogtreecommitdiff
path: root/backends/keymapper
diff options
context:
space:
mode:
authorTarek Soliman2012-02-02 18:53:14 -0600
committerTarek Soliman2012-02-02 19:10:01 -0600
commita488556dcdfb69ec30af740aa2c71977f505ef35 (patch)
treefa104a21bf019b45b792034cce5939c4eaf8cf9e /backends/keymapper
parent70d94bdd2c469bd8cd52b8d2367c64130b1679f1 (diff)
downloadscummvm-rg350-a488556dcdfb69ec30af740aa2c71977f505ef35.tar.gz
scummvm-rg350-a488556dcdfb69ec30af740aa2c71977f505ef35.tar.bz2
scummvm-rg350-a488556dcdfb69ec30af740aa2c71977f505ef35.zip
KEYMAPPER: Handle EVENT_MAINMENU directly
Diffstat (limited to 'backends/keymapper')
-rw-r--r--backends/keymapper/keymapper.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/backends/keymapper/keymapper.cpp b/backends/keymapper/keymapper.cpp
index 38711343c2..6d9ae21ef8 100644
--- a/backends/keymapper/keymapper.cpp
+++ b/backends/keymapper/keymapper.cpp
@@ -268,6 +268,9 @@ void Keymapper::executeAction(const Action *action, bool keyDown) {
case EVENT_MBUTTONUP:
if (keyDown) evt.type = EVENT_MBUTTONDOWN;
break;
+ case EVENT_MAINMENU:
+ if (!keyDown) evt.type = EVENT_MAINMENU;
+ break;
default:
// don't deliver other events on key up
if (!keyDown) continue;