22 #ifndef SWORD1_MOUSE_H 23 #define SWORD1_MOUSE_H 25 #include "common/mutex.h" 26 #include "common/scummsys.h" 27 #include "common/rect.h" 28 #include "sword1/sworddefs.h" 29 #include "sword1/object.h" 37 #define BS1L_BUTTON_DOWN 2 38 #define BS1L_BUTTON_UP 4 39 #define BS1R_BUTTON_DOWN 8 40 #define BS1R_BUTTON_UP 16 41 #define BS1_WHEEL_UP 32 42 #define BS1_WHEEL_DOWN 64 43 #define MOUSE_BOTH_BUTTONS (BS1L_BUTTON_DOWN | BS1R_BUTTON_DOWN) 44 #define MOUSE_DOWN_MASK (BS1L_BUTTON_DOWN | BS1R_BUTTON_DOWN) 45 #define MOUSE_UP_MASK (BS1L_BUTTON_UP | BS1R_BUTTON_UP) 52 #include "common/pack-start.h" 60 uint8 dummyData[0x30];
63 #include "common/pack-end.h" 75 void addToList(
int id,
Object *compact);
76 void useLogicAndMenu(
Logic *pLogic,
Menu *pMenu);
78 void setLuggage(uint32 resID, uint32 rate);
79 void setPointer(uint32 resID, uint32 rate);
81 void engine(uint16 x, uint16 y, uint16 eventFlags);
83 void giveCoords(uint16 *x, uint16 *y);
90 void controlPanel(
bool on);
92 void createPointer(uint32 ptrId, uint32 luggageId);
102 uint32 _currentPtrId, _currentLuggageId;
104 int _frame, _activeFrame;
106 uint16 _lastState, _state;
108 bool _inTopMenu, _mouseOverride;
Definition: animation.h:38
Definition: objectman.h:33