From c19afec75aa25474561aad2ed3854356867d181e Mon Sep 17 00:00:00 2001 From: Kari Salminen Date: Sun, 24 Jan 2010 19:47:53 +0000 Subject: Cine: executePlayerInput: Add makeActionMenu-part to keyboard handling and a couple of TODOs for Operation Stealth. - NOTE: This doesn't seem to work correctly yet. My current guess is that it has to do with how some keyboard events are handled in cine/main_loop.cpp's processEvent-function and some in cine/various.cpp's executePlayerInput. svn-id: r47515 --- engines/cine/various.cpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'engines/cine') diff --git a/engines/cine/various.cpp b/engines/cine/various.cpp index ce60bd9108..c2dfefad23 100644 --- a/engines/cine/various.cpp +++ b/engines/cine/various.cpp @@ -1119,6 +1119,7 @@ uint16 executePlayerInput() { case 5: // F6 = SPEAK if (allowPlayerInput) { playerCommand = var_2 - 59; + // TODO: Operation Stealth uses shift key here for handling canUseOnObject differently... investigate and implement. makeCommandLine(); } break; @@ -1126,13 +1127,18 @@ uint16 executePlayerInput() { case 7: // F8 case 8: // F9 case 23: // Keypad-0/Ins + // TODO: Restrict this case only to F7 for Operation Stealth + if (allowPlayerInput) { + makeActionMenu(); + makeCommandLine(); + } break; case 9: // F10 case 24: // Keypad-./Del + // TODO: Restrict this case only to F10 for Operation Stealth g_cine->makeSystemMenu(); break; default: - // printf("Unhandled case %d in last part of executePlayerInput\n",var2-59); break; } } -- cgit v1.2.3