diff options
author | Matthew Hoops | 2011-12-20 18:35:33 -0500 |
---|---|---|
committer | Matthew Hoops | 2011-12-20 18:35:33 -0500 |
commit | 331da45ae3e1192e348ae817456e9f121ee74577 (patch) | |
tree | 515c36009ac0e95521099204c9caa179a670249b /engines/pegasus/ai | |
parent | a600dcb56a9633ebfae0d726480352b6f2e9b3ba (diff) | |
download | scummvm-rg350-331da45ae3e1192e348ae817456e9f121ee74577.tar.gz scummvm-rg350-331da45ae3e1192e348ae817456e9f121ee74577.tar.bz2 scummvm-rg350-331da45ae3e1192e348ae817456e9f121ee74577.zip |
PEGASUS: Make InputDevice into a Singleton
Removes a global construction
Diffstat (limited to 'engines/pegasus/ai')
-rwxr-xr-x | engines/pegasus/ai/ai_area.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/pegasus/ai/ai_area.cpp b/engines/pegasus/ai/ai_area.cpp index b0836ab638..9eacb038bd 100755 --- a/engines/pegasus/ai/ai_area.cpp +++ b/engines/pegasus/ai/ai_area.cpp @@ -265,7 +265,7 @@ bool AIArea::playAIMovie(const LowerAreaSignature area, const Common::String &mo lockAIOut(); - InputHandler::getCurrentInputDevice()->waitInput(interruptFilter); + InputDevice.waitInput(interruptFilter); if (_AIMovie.isMovieValid()) _AIMovie.releaseMovie(); @@ -295,7 +295,7 @@ bool AIArea::playAIMovie(const LowerAreaSignature area, const Common::String &mo while (_AIMovie.isRunning()) { Input input; - InputHandler::getCurrentInputDevice()->getInput(input, interruptFilter); + InputDevice.getInput(input, interruptFilter); if (input.anyInput() || vm->shouldQuit()) { result = false; |