DIRECTOR: Implement kTheMouseH and kTheMouseV

This commit is contained in:
Scott Percival 2020-01-01 23:36:10 +08:00
parent 724ced87d0
commit 0c3ffa6330

View File

@ -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;