aboutsummaryrefslogtreecommitdiff
path: root/src/event.h
blob: 30618ac0aa1998de0ca3b47a76402b946e047537 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
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