X-Git-Url: https://git.artsoft.org/?a=blobdiff_plain;f=src%2Fbuttons.h;h=bafbd2a2d8400ff0516e8b173a0cba6d08aa77f5;hb=5ed4de42ced8e7dce5b786ba3d5fd1a6f6a7d7f6;hp=34797401c7b5529b510f9068f73957d389186709;hpb=bd0a94b2fe778016135d2ebc4fd3c84d3b72b62f;p=rocksndiamonds.git diff --git a/src/buttons.h b/src/buttons.h index 34797401..bafbd2a2 100644 --- a/src/buttons.h +++ b/src/buttons.h @@ -287,6 +287,7 @@ int CheckCountButtons(int, int, int); #define GD_EVENT_RELEASED (1<<1) #define GD_EVENT_MOVING (1<<2) #define GD_EVENT_REPEATED (1<<3) +#define GD_EVENT_OFF_BORDERS (1<<4) /* gadget button states */ #define GD_BUTTON_UNPRESSED 0 @@ -330,6 +331,7 @@ struct GadgetEvent unsigned long type; /* event type */ int button; /* button number for button events */ int x, y; /* gadget position at event time */ + boolean off_borders; /* mouse pointer outside gadget? */ }; struct GadgetDrawingArea