137fb6cb9f
Here's another patch for rockboy that adds automatic frameskip (it's pretty rough as I haven't figured out an accurate timer), fullscreen support on the H300, and a bit of assembly and some IRAM stuff. I'm not sure if I'm doing the IRAM stuff correct though as it doesn't seem to make much of a difference if any. I've also added a statistics option that will show how many frames per second the gameboy is seeing (not what the player is getting) and what the frameskip is at. When you enable stats sometimes you have to go back into the menu and then come out to clear erronous values. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8397 a1c6a512-1295-4272-9138-f99709370657
24 lines
327 B
C
24 lines
327 B
C
/*
|
|
* 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) ICODE_ATTR;
|
|
int ev_getevent(event_t *ev) ICODE_ATTR;
|
|
|
|
|