summaryrefslogtreecommitdiff
path: root/apps/plugins/rockboy/input.h
blob: aa992380e9b0487eaddfbf2e1f881af0d3ddd13a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
/*
 * input.h
 *
 * Definitions for input device stuff - buttons, keys, etc.
 */

typedef struct event_s
{
    int type;
    int code;
} event_t;

#define EV_NONE 0
#define EV_PRESS 1
#define EV_RELEASE 2

int ev_postevent(event_t *ev);
int ev_getevent(event_t *ev);