mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-13 21:31:53 +00:00
DIRECTOR: Implement kTheMouseH and kTheMouseV
This commit is contained in:
parent
724ced87d0
commit
0c3ffa6330
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user