aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorPaul Gilbert2011-07-16 15:30:06 +1000
committerPaul Gilbert2011-07-16 15:30:06 +1000
commitb957eda759c060048ca2c1d371105c64776d1207 (patch)
tree8499020d6118b85cd4b122b04aa28378dfed9f9c /engines
parentc3f3120194151cdeb31d9b3622c76cd4e5b7ed6a (diff)
downloadscummvm-rg350-b957eda759c060048ca2c1d371105c64776d1207.tar.gz
scummvm-rg350-b957eda759c060048ca2c1d371105c64776d1207.tar.bz2
scummvm-rg350-b957eda759c060048ca2c1d371105c64776d1207.zip
CGE: Map keypad Enter to be handled like the main Enter key
Diffstat (limited to 'engines')
-rw-r--r--engines/cge/events.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/engines/cge/events.cpp b/engines/cge/events.cpp
index 73018aa2ea..eba043cdc8 100644
--- a/engines/cge/events.cpp
+++ b/engines/cge/events.cpp
@@ -104,6 +104,10 @@ bool Keyboard::getKey(uint16 keycode, int &cgeCode) {
cgeCode = 29;
return true;
}
+ if (keycode == Common::KEYCODE_KP_ENTER) {
+ cgeCode = 28;
+ return true;
+ }
// Scan through the ScummVM mapping list
for (int idx = 0; idx < 0x60; ++idx) {