diff options
author | Florian Kagerer | 2009-02-15 03:36:30 +0000 |
---|---|---|
committer | Florian Kagerer | 2009-02-15 03:36:30 +0000 |
commit | 16a57f299cdad82a87c1d397b56b663a9426c38e (patch) | |
tree | 21fcc6ac31586e322840be55c4dc052654c0b385 /engines/kyra/script_tim.cpp | |
parent | 36767120e1d3553217809af262d844474f926c03 (diff) | |
download | scummvm-rg350-16a57f299cdad82a87c1d397b56b663a9426c38e.tar.gz scummvm-rg350-16a57f299cdad82a87c1d397b56b663a9426c38e.tar.bz2 scummvm-rg350-16a57f299cdad82a87c1d397b56b663a9426c38e.zip |
LOL: - implemented proper button processing (works exactly as in Kyra 2 and 3, so we do have some code duplication atm, I just fixed right mouse button support for LOL)
- keyboard control now works
svn-id: r38190
Diffstat (limited to 'engines/kyra/script_tim.cpp')
-rw-r--r-- | engines/kyra/script_tim.cpp | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/engines/kyra/script_tim.cpp b/engines/kyra/script_tim.cpp index 9a08848352..a9277150cf 100644 --- a/engines/kyra/script_tim.cpp +++ b/engines/kyra/script_tim.cpp @@ -916,30 +916,30 @@ uint16 TIMInterpreter_LoL::processDialogue() { //} } } else { - int e = _vm->checkInput(0, false); + int e = _vm->checkInput(0, false) & 0xCF; _vm->removeInputTop(); switch (e) { - case 100: - case 101: + case 120: + case 121: _vm->snd_dialogueSpeechUpdate(1); //_dlgTimer = 0; res = _dialogueHighlightedButton + 1; break; - case 110: - case 111: + case 92: + case 97: if (_dialogueNumButtons > 1 && _dialogueHighlightedButton > 0) _dialogueHighlightedButton--; break; - case 112: - case 113: + case 96: + case 102: if (_dialogueNumButtons > 1 && _dialogueHighlightedButton < (_dialogueNumButtons - 1)) _dialogueHighlightedButton++; break; case 200: - case 300: + case 202: x = _dialogueButtonPosX; for (int i = 0; i < _dialogueNumButtons; i++) { |