X-Git-Url: https://git.artsoft.org/?p=rocksndiamonds.git;a=blobdiff_plain;f=src%2Flibgame%2Fsystem.h;h=d4e732e9fb22a535c1329dcb652ff80aafc9db6a;hp=8bcafb8269c1517ecaf30a8734f9db2668059351;hb=3cc2ee99e57014c6962d26365e92bd3eac36a492;hpb=f4d75550969f97716de4b9f5340b8fcf835ab7fc diff --git a/src/libgame/system.h b/src/libgame/system.h index 8bcafb82..d4e732e9 100644 --- a/src/libgame/system.h +++ b/src/libgame/system.h @@ -352,6 +352,16 @@ #define STYLE_DEFAULT STYLE_NONE +// values for special global animation delay types +#define ANIM_DELAY_UNDEFINED -1 +#define ANIM_DELAY_NONE 0 +#define ANIM_DELAY_INIT 1 +#define ANIM_DELAY_ANIM 2 +#define ANIM_DELAY_POST 3 + +// values for special global animation delay actions +#define ANIM_DELAY_ACTION_NONE -1 + // values for special global animation events #define ANIM_EVENT_UNDEFINED -1 #define ANIM_EVENT_NONE 0 @@ -362,6 +372,7 @@ #define ANIM_EVENT_START (1 << 20) #define ANIM_EVENT_END (1 << 21) #define ANIM_EVENT_POST (1 << 22) +#define ANIM_EVENT_UNCLICK_ANY (1 << 23) // anim number: bits 0-7 // part number: bits 8-15 @@ -458,6 +469,7 @@ y >= gfx.ey && y < gfx.ey + gfx.eysize) // values for mouse cursor +#define CURSOR_UNDEFINED -1 #define CURSOR_DEFAULT 0 #define CURSOR_NONE 1 #define CURSOR_PLAYFIELD 2 @@ -1110,6 +1122,9 @@ struct GfxInfo void (*draw_tile_cursor_function)(int); int cursor_mode; + int cursor_mode_override; + int cursor_mode_final; + int mouse_x, mouse_y; }; struct TileCursorInfo @@ -1852,7 +1867,7 @@ KeyMod GetKeyModState(void); KeyMod GetKeyModStateFromEvents(void); void StartTextInput(int, int, int, int); void StopTextInput(void); -boolean CheckCloseWindowEvent(ClientMessageEvent *); +void PushUserEvent(int, int, int); void InitJoysticks(void); boolean ReadJoystick(int, int *, int *, boolean *, boolean *);