aboutsummaryrefslogtreecommitdiff
path: root/engines/lab/mouse.h
diff options
context:
space:
mode:
Diffstat (limited to 'engines/lab/mouse.h')
-rw-r--r--engines/lab/mouse.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/engines/lab/mouse.h b/engines/lab/mouse.h
index 0ff7d605f0..b3b3e30da3 100644
--- a/engines/lab/mouse.h
+++ b/engines/lab/mouse.h
@@ -48,11 +48,17 @@ private:
bool _mouseHidden;
int32 _numHidden;
Gadget *_lastGadgetHit;
+ uint16 _nextKeyIn;
+ uint16 _nextKeyOut;
+ Common::Point _mousePos;
+ bool _mouseAtEdge;
+ uint16 _keyBuf[64];
public:
EventManager (LabEngine *vm);
Gadget *_screenGadgetList;
+ Gadget *_hitGadget;
Gadget *checkGadgetHit(Gadget *gadgetList, Common::Point pos);
void initMouse();
@@ -65,6 +71,11 @@ public:
Gadget *mouseGadget();
void attachGadgetList(Gadget *gadgetList);
void mouseHandler(int flag, Common::Point pos);
+ bool keyPress(uint16 *keyCode);
+ bool haveNextChar();
+ void processInput(bool can_delay = false);
+ uint16 getNextChar();
+ Common::Point updateAndGetMousePos();
};
} // End of namespace Lab