From 384de102469fee4e0792df8fe38586d3206774ed Mon Sep 17 00:00:00 2001 From: Jens Arnold Date: Wed, 2 Mar 2005 23:49:38 +0000 Subject: 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 --- apps/plugins/rockboy/input.h | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 apps/plugins/rockboy/input.h (limited to 'apps/plugins/rockboy/input.h') diff --git a/apps/plugins/rockboy/input.h b/apps/plugins/rockboy/input.h new file mode 100644 index 0000000..8c5fdf9 --- /dev/null +++ b/apps/plugins/rockboy/input.h @@ -0,0 +1,24 @@ +/* + * input.h + * + * Definitions for input device stuff - buttons, keys, etc. + */ + + +#define MAX_KEYS 10 + +typedef struct event_s +{ + int type; + int code; +} event_t; + +#define EV_NONE 0 +#define EV_PRESS 1 +#define EV_RELEASE 2 +#define EV_REPEAT 3 + +int ev_postevent(event_t *ev); +int ev_getevent(event_t *ev); + + -- cgit v1.1