aboutsummaryrefslogtreecommitdiff
path: root/engines/tsage
diff options
context:
space:
mode:
authorPaul Gilbert2011-10-22 23:46:23 +1100
committerPaul Gilbert2011-10-23 22:12:05 +1100
commit4cfafcdf8ba658dc208a62e26288c80309b39fd7 (patch)
treef7e4aa191fc694cf8d2f4b0b688a08ff9f2de060 /engines/tsage
parentdddf7a3bff52c8304a87e8abbb63ba8a64422dab (diff)
downloadscummvm-rg350-4cfafcdf8ba658dc208a62e26288c80309b39fd7.tar.gz
scummvm-rg350-4cfafcdf8ba658dc208a62e26288c80309b39fd7.tar.bz2
scummvm-rg350-4cfafcdf8ba658dc208a62e26288c80309b39fd7.zip
TSAGE: Added quick keys for selecting the different actions
Diffstat (limited to 'engines/tsage')
-rw-r--r--engines/tsage/core.cpp24
1 files changed, 24 insertions, 0 deletions
diff --git a/engines/tsage/core.cpp b/engines/tsage/core.cpp
index dbc087c53f..495d122995 100644
--- a/engines/tsage/core.cpp
+++ b/engines/tsage/core.cpp
@@ -3777,6 +3777,30 @@ void SceneHandler::process(Event &event) {
g_vm->_debugger->onFrame();
}
+ if ((event.eventType == EVENT_KEYPRESS) && g_globals->_player._enabled && g_globals->_player._canWalk) {
+ // Keyboard shortcuts for different actions
+ switch (event.kbd.keycode) {
+ case Common::KEYCODE_w:
+ g_globals->_events.setCursor(CURSOR_WALK);
+ event.handled = true;
+ break;
+ case Common::KEYCODE_l:
+ g_globals->_events.setCursor(CURSOR_LOOK);
+ event.handled = true;
+ break;
+ case Common::KEYCODE_u:
+ g_globals->_events.setCursor(CURSOR_USE);
+ event.handled = true;
+ break;
+ case Common::KEYCODE_t:
+ g_globals->_events.setCursor(CURSOR_TALK);
+ event.handled = true;
+ break;
+ default:
+ break;
+ }
+ }
+
// Mouse press handling
bool enabled = (g_vm->getGameID() == GType_BlueForce) ? g_globals->_player._enabled :
g_globals->_player._uiEnabled;