23 #ifndef M4_GUI_GUI_MOUSE_H 24 #define M4_GUI_GUI_MOUSE_H 26 #include "m4/m4_types.h" 27 #include "m4/gui/gui_univ.h" 28 #include "m4/mem/reloc.h" 32 constexpr uint32 kArrowCursor = 0;
40 MemHandle _mouseSeriesHandle =
nullptr;
41 int32 _mouseSeriesOffset = 0;
42 int32 _mouseSeriesPalOffset = 0;
44 int32 _mouseX1offset = 0;
45 int32 _mouseY1offset = 0;
46 int32 _mouseX2offset = 0;
47 int32 _mouseY2offset = 0;
48 int32 _currMouseNum = 0;
49 bool _mouseIsLocked =
false;
50 int32 _newMouseNum = 0;
52 int32 _hideMouseX1 = MIN_VIDEO_X - 1;
53 int32 _hideMouseY1 = MIN_VIDEO_Y - 1;
54 int32 _hideMouseX2 = MIN_VIDEO_X - 1;
55 int32 _hideMouseY2 = MIN_VIDEO_Y - 1;
57 int32 _showMouseX1 = MIN_VIDEO_X;
58 int32 _showMouseY1 = MIN_VIDEO_Y;
59 int32 _showMouseX2 = MAX_VIDEO_X;
60 int32 _showMouseY2 = MAX_VIDEO_Y;
62 int32 _mouseX = MAX_VIDEO_X >> 1;
63 int32 _mouseY = MAX_VIDEO_Y >> 1;
65 int32 _oldX = MAX_VIDEO_X >> 1;
66 int32 _oldY = MAX_VIDEO_Y >> 1;
69 bool gui_mouse_init();
70 void gui_mouse_shutdown();
71 bool mouse_set_sprite(int32 spriteNum);
72 void gui_mouse_refresh();
75 void mouse_lock_sprite(int32 mouseNum);
76 void mouse_unlock_sprite();
Definition: m4_types.h:67
Definition: gui_univ.h:47
Definition: database.h:28
Definition: gui_mouse.h:34