aboutsummaryrefslogtreecommitdiff
path: root/src/event.h
blob: 609458ae9bd22c52f42049933ec334b5345ccefe (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#ifndef COMET_EVENT_H
#define COMET_EVENT_H

#include "display.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;

typedef struct layout layout_t;

void event_dispatch(display_t *display, layout_t *layout);

#endif