From 39b27ed3bb3f8d54d988afd6de147ede518ca4bd Mon Sep 17 00:00:00 2001 From: Torbjörn Andersson Date: Sun, 19 Nov 2006 18:32:00 +0000 Subject: Added keyboard shortcuts for left and right mouse button. svn-id: r24746 --- engines/cine/main_loop.cpp | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'engines') 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 -- cgit v1.2.3