aboutsummaryrefslogtreecommitdiff
path: root/engines/pegasus/ai
diff options
context:
space:
mode:
authorMatthew Hoops2011-12-20 18:35:33 -0500
committerMatthew Hoops2011-12-20 18:35:33 -0500
commit331da45ae3e1192e348ae817456e9f121ee74577 (patch)
tree515c36009ac0e95521099204c9caa179a670249b /engines/pegasus/ai
parenta600dcb56a9633ebfae0d726480352b6f2e9b3ba (diff)
downloadscummvm-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-xengines/pegasus/ai/ai_area.cpp4
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;