diff options
author | Scott Percival | 2020-01-01 23:36:10 +0800 |
---|---|---|
committer | Scott Percival | 2020-01-01 23:41:47 +0800 |
commit | 0c3ffa633076718552cfeecea55d7026a840eccf (patch) | |
tree | b0e396d169233038ff2b5b55604e236d889cecf9 /engines/director/lingo/lingo-the.cpp | |
parent | 724ced87d03dcafd45164e70ef14190023c4dec8 (diff) | |
download | scummvm-rg350-0c3ffa633076718552cfeecea55d7026a840eccf.tar.gz scummvm-rg350-0c3ffa633076718552cfeecea55d7026a840eccf.tar.bz2 scummvm-rg350-0c3ffa633076718552cfeecea55d7026a840eccf.zip |
DIRECTOR: Implement kTheMouseH and kTheMouseV
Diffstat (limited to 'engines/director/lingo/lingo-the.cpp')
-rw-r--r-- | engines/director/lingo/lingo-the.cpp | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/engines/director/lingo/lingo-the.cpp b/engines/director/lingo/lingo-the.cpp index 22c9b8a6a1..676a923d74 100644 --- a/engines/director/lingo/lingo-the.cpp +++ b/engines/director/lingo/lingo-the.cpp @@ -20,6 +20,9 @@ * */ +#include "common/system.h" +#include "common/events.h" + #include "director/director.h" #include "director/cast.h" #include "director/sprite.h" @@ -467,6 +470,14 @@ Datum Lingo::getTheEntity(int entity, Datum &id, int field) { d.type = INT; d.u.i = _vm->_keyCode; break; + case kTheMouseH: + d.type = INT; + d.u.i = g_system->getEventManager()->getMousePos().x; + break; + case kTheMouseV: + d.type = INT; + d.u.i = g_system->getEventManager()->getMousePos().y; + break; case kTheColorQD: d.type = INT; d.u.i = 1; |