#ifndef __EVENT_H__ #define __EVENT_H__ #include "include.h" #include "globals.h" #define BUTTON_UP 0 #define BUTTON_DOWN 1 #define LEFT_BUTTON 1 #define MIDDLE_BUTTON 2 #define RIGHT_BUTTON 3 /* the state of the event handler which buttons are pressed, mouse position, etc. */ typedef struct _EventState_ { int leftmouse_down, middlemouse_down, rightmouse_down; int mpos1[2], mpos2[2], lastmpos[2]; int mspeed; } EventState; extern EventState gevent; int HandleButtonCB(struct Togl *togl, int argc, char *argv[]); int HandleMotionCB(struct Togl *togl, int argc, char *argv[]); void DynamicsCB(struct Togl *togl); #endif /* __EVENT_H__ */