diff options
Diffstat (limited to 'engines/lab/mouse.h')
-rw-r--r-- | engines/lab/mouse.h | 40 |
1 files changed, 21 insertions, 19 deletions
diff --git a/engines/lab/mouse.h b/engines/lab/mouse.h index 489bb1e989..6468ba91c7 100644 --- a/engines/lab/mouse.h +++ b/engines/lab/mouse.h @@ -38,25 +38,27 @@ namespace Lab { struct Gadget; -void initMouse(); - -void updateMouse(); - -void mouseShow(); - -void mouseHide(); - -Common::Point getMousePos(); - -void setMousePos(Common::Point pos); - -bool mouseButton(uint16 *x, uint16 *y, bool leftbutton); - -Gadget *mouseGadget(); - -void attachGadgetList(Gadget *GadList); - -void mouseHandler(int flag, Common::Point pos); +class LabEngine; + +class EventManager { +private: + LabEngine *_vm; + +public: + EventManager (LabEngine *vm); + + Gadget *checkGadgetHit(Gadget *gadlist, Common::Point pos); + void initMouse(); + void updateMouse(); + void mouseShow(); + void mouseHide(); + Common::Point getMousePos(); + void setMousePos(Common::Point pos); + bool mouseButton(uint16 *x, uint16 *y, bool leftbutton); + Gadget *mouseGadget(); + void attachGadgetList(Gadget *GadList); + void mouseHandler(int flag, Common::Point pos); +}; } // End of namespace Lab |