aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJames Brown2002-05-05 22:39:52 +0000
committerJames Brown2002-05-05 22:39:52 +0000
commit1dc2ccca8dc47422b7637600b22b987b6cac8ec2 (patch)
treee5c62d8131c06f5ad135d22ce5fc8bb1a06bfb12
parenta823c467dbfc44dcc094c63aa9049c7d2436f376 (diff)
downloadscummvm-rg350-1dc2ccca8dc47422b7637600b22b987b6cac8ec2.tar.gz
scummvm-rg350-1dc2ccca8dc47422b7637600b22b987b6cac8ec2.tar.bz2
scummvm-rg350-1dc2ccca8dc47422b7637600b22b987b6cac8ec2.zip
Add hotkeys for text speed / master volume
svn-id: r4218
-rw-r--r--readme.txt2
-rw-r--r--scummvm.cpp23
2 files changed, 25 insertions, 0 deletions
diff --git a/readme.txt b/readme.txt
index 24ed6fa3a9..d532d041ee 100644
--- a/readme.txt
+++ b/readme.txt
@@ -242,6 +242,8 @@ In game Hot Keys:
Ctrl-f - runs in fast mode.
Ctrl-d - starts the debugger.
Ctrl-s - shows memory consumption.
+ [ and ] - master volume, down/up
+ - and + - text speed, slower / faster
F5 - displays a save/load box.
Space - pauses.
Alt-Enter - toggles full screen/windowed
diff --git a/scummvm.cpp b/scummvm.cpp
index 443597300a..cebc26634c 100644
--- a/scummvm.cpp
+++ b/scummvm.cpp
@@ -868,7 +868,30 @@ void Scumm::processKbd()
if (_sfxMode == 2)
stopTalk();
return;
+ } else if (_lastKeyHit == 91) { // [, eg volume down
+ _sound_volume_master-=5;
+ if (_sound_volume_master < 0)
+ _sound_volume_master = 0;
+ _imuse->set_master_volume(_sound_volume_master);
+ } else if (_lastKeyHit == 93) { // ], eg volume down
+ _sound_volume_master+=5;
+ if (_sound_volume_master > 128)
+ _sound_volume_master = 128;
+ _imuse->set_master_volume(_sound_volume_master);
+ } else if (_lastKeyHit == 45) { // -, eg text speed down
+ _defaultTalkDelay+=5;
+ if (_defaultTalkDelay > 90)
+ _defaultTalkDelay = 90;
+
+ _vars[VAR_CHARINC] = _defaultTalkDelay / 20;
+ } else if (_lastKeyHit == 61) { // +, eg text speed up
+ _defaultTalkDelay-=5;
+ if (_defaultTalkDelay < 5)
+ _defaultTalkDelay = 5;
+
+ _vars[VAR_CHARINC] = _defaultTalkDelay / 20;
}
+
_mouseButStat = _lastKeyHit;
}