aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorTorbjörn Andersson2006-11-19 18:32:00 +0000
committerTorbjörn Andersson2006-11-19 18:32:00 +0000
commit39b27ed3bb3f8d54d988afd6de147ede518ca4bd (patch)
treecb163229c9d4d88151c851b1894487ab0e7de3e8 /engines
parent2454f78589a6ee1d320d9b3f62b8f43106db1a48 (diff)
downloadscummvm-rg350-39b27ed3bb3f8d54d988afd6de147ede518ca4bd.tar.gz
scummvm-rg350-39b27ed3bb3f8d54d988afd6de147ede518ca4bd.tar.bz2
scummvm-rg350-39b27ed3bb3f8d54d988afd6de147ede518ca4bd.zip
Added keyboard shortcuts for left and right mouse button.
svn-id: r24746
Diffstat (limited to 'engines')
-rw-r--r--engines/cine/main_loop.cpp12
1 files changed, 12 insertions, 0 deletions
diff --git a/engines/cine/main_loop.cpp b/engines/cine/main_loop.cpp
index 3e130cf781..6b53012171 100644
--- a/engines/cine/main_loop.cpp
+++ b/engines/cine/main_loop.cpp
@@ -64,6 +64,18 @@ void manageEvents(int count) {
break;
case OSystem::EVENT_KEYDOWN:
switch (event.kbd.keycode) {
+ case '\n':
+ case '\r':
+ case 261: // Keypad 5
+ if (allowPlayerInput) {
+ mouseLeft = 1;
+ }
+ break;
+ case 27: // ESC
+ if (allowPlayerInput) {
+ mouseRight = 1;
+ }
+ break;
case 282: // F1
if (allowPlayerInput) {
playerCommand = 0; // EXAMINE