diff options
Diffstat (limited to 'src/event.h')
| -rw-r--r-- | src/event.h | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/src/event.h b/src/event.h new file mode 100644 index 0000000..30618ac --- /dev/null +++ b/src/event.h @@ -0,0 +1,18 @@ +#ifndef COMET_EVENT_H +#define COMET_EVENT_H + +#include <stddef.h> + +typedef enum { + EVENT_LEFT_CLICK, + EVENT_MIDDLE_CLICK, + EVENT_RIGHT_CLICK, + EVENT_TRIGGER, +} event_type_t; + +typedef struct { + event_type_t type; + int x, y; +} event_t; + +#endif |
