X-Git-Url: https://git.artsoft.org/?a=blobdiff_plain;f=src%2Flibgame%2Fgadgets.h;h=2fcc82f0fe148d99f03ed3c0dc59a3948586979c;hb=40aa8a64f516da6baf703b44d141b37c291553df;hp=8cd4716c133e40fcd70794de9a0d35b125effccf;hpb=3370541656df96651eabc2723332e93964c28737;p=rocksndiamonds.git diff --git a/src/libgame/gadgets.h b/src/libgame/gadgets.h index 8cd4716c..2fcc82f0 100644 --- a/src/libgame/gadgets.h +++ b/src/libgame/gadgets.h @@ -50,6 +50,7 @@ #define GD_EVENT_TEXT_LEAVING (1 << 6) #define GD_EVENT_INFO_ENTERING (1 << 7) #define GD_EVENT_INFO_LEAVING (1 << 8) +#define GD_EVENT_PIXEL_PRECISE (1 << 9) /* gadget button states */ #define GD_BUTTON_UNPRESSED 0 @@ -143,6 +144,7 @@ struct GadgetEvent { unsigned int type; /* event type */ int button; /* button number for button events */ + int mx, my; /* raw gadget position at event time */ int x, y; /* gadget position at event time */ boolean off_borders; /* mouse pointer outside gadget? */ int item_x, item_y, item_position; /* new item position */