Add cases for using '-' and '+' keys on the keypad too.

svn-id: r27841
This commit is contained in:
Travis Howell 2007-07-01 23:45:15 +00:00
parent 7e83dfd275
commit 3f82a451ef

View File

@ -567,12 +567,14 @@ bool AGOSEngine::processSpecialKeys() {
_speech ^= 1;
}
case Common::KEYCODE_PLUS:
case Common::KEYCODE_KP_PLUS:
if (_midiEnabled) {
_midi.setVolume(_midi.getVolume() + 16);
}
_mixer->setVolumeForSoundType(Audio::Mixer::kMusicSoundType, _mixer->getVolumeForSoundType(Audio::Mixer::kMusicSoundType) + 16);
break;
case Common::KEYCODE_MINUS:
case Common::KEYCODE_KP_MINUS:
if (_midiEnabled) {
_midi.setVolume(_midi.getVolume() - 16);
}