diff options
author | johndoe123 | 2014-12-11 14:14:52 +0100 |
---|---|---|
committer | Eugene Sandulenko | 2018-07-20 06:43:33 +0000 |
commit | 36ec0fafdb186ad55a0d6c08e38b96ef84fa60a8 (patch) | |
tree | 60c9d7eb972d42f7e6cdaf5d6cb169906f4e1c28 /engines/illusions/threads/abortablethread.cpp | |
parent | a078073e88c094c23e4eb51e5fb85e2cecc3ae9a (diff) | |
download | scummvm-rg350-36ec0fafdb186ad55a0d6c08e38b96ef84fa60a8.tar.gz scummvm-rg350-36ec0fafdb186ad55a0d6c08e38b96ef84fa60a8.tar.bz2 scummvm-rg350-36ec0fafdb186ad55a0d6c08e38b96ef84fa60a8.zip |
ILLUSIONS: Refactor the input system
Diffstat (limited to 'engines/illusions/threads/abortablethread.cpp')
-rw-r--r-- | engines/illusions/threads/abortablethread.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/illusions/threads/abortablethread.cpp b/engines/illusions/threads/abortablethread.cpp index 348bc9c49a..b06debe014 100644 --- a/engines/illusions/threads/abortablethread.cpp +++ b/engines/illusions/threads/abortablethread.cpp @@ -35,13 +35,13 @@ AbortableThread::AbortableThread(IllusionsEngine *vm, uint32 threadId, uint32 ca _scriptCodeIp(scriptCodeIp), _status(1) { _type = kTTAbortableThread; _tag = _vm->getCurrentScene(); - _vm->_input->discardButtons(8); + _vm->_input->discardEvent(kEventAbort); } int AbortableThread::onUpdate() { if (_status != 1 || _pauseCtr < 0) return kTSTerminate; - if (_vm->_input->pollButton(8)) { + if (_vm->_input->pollEvent(kEventAbort)) { _vm->_threads->killThread(_scriptThreadId); ++_pauseCtr; _vm->startTempScriptThread(_scriptCodeIp, _threadId, 0, 0, 0); |