diff options
author | Jens Arnold <amiconn@rockbox.org> | 2005-03-02 23:49:38 +0000 |
---|---|---|
committer | Jens Arnold <amiconn@rockbox.org> | 2005-03-02 23:49:38 +0000 |
commit | 384de102469fee4e0792df8fe38586d3206774ed (patch) | |
tree | ee5342103e17738acfb8421328ea7c57433f55e6 /apps/plugins/rockboy/input.h | |
parent | 48dad47df98bdec632e8930b6a97359dc2c428f5 (diff) | |
download | rockbox-384de102469fee4e0792df8fe38586d3206774ed.tar.gz rockbox-384de102469fee4e0792df8fe38586d3206774ed.zip |
Rockboy - gameboy emulation for rockbox, based on gnuboy. Still a bit early, but already playable on iRiver H1xx and the simulators. The archos recorder version is currently rather slow...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@6104 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/plugins/rockboy/input.h')
-rw-r--r-- | apps/plugins/rockboy/input.h | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/apps/plugins/rockboy/input.h b/apps/plugins/rockboy/input.h new file mode 100644 index 0000000000..8c5fdf9352 --- /dev/null +++ b/apps/plugins/rockboy/input.h | |||
@@ -0,0 +1,24 @@ | |||
1 | /* | ||
2 | * input.h | ||
3 | * | ||
4 | * Definitions for input device stuff - buttons, keys, etc. | ||
5 | */ | ||
6 | |||
7 | |||
8 | #define MAX_KEYS 10 | ||
9 | |||
10 | typedef struct event_s | ||
11 | { | ||
12 | int type; | ||
13 | int code; | ||
14 | } event_t; | ||
15 | |||
16 | #define EV_NONE 0 | ||
17 | #define EV_PRESS 1 | ||
18 | #define EV_RELEASE 2 | ||
19 | #define EV_REPEAT 3 | ||
20 | |||
21 | int ev_postevent(event_t *ev); | ||
22 | int ev_getevent(event_t *ev); | ||
23 | |||
24 | |||