diff options
author | Christian Gmeiner <christian.gmeiner@gmail.com> | 2006-03-28 17:20:49 +0000 |
---|---|---|
committer | Christian Gmeiner <christian.gmeiner@gmail.com> | 2006-03-28 17:20:49 +0000 |
commit | d1b587a6594f73cda78576f8fb6f80498c71b49a (patch) | |
tree | 792e3212d94cd70a2185d47bce0f84f640408cf5 /apps/plugins | |
parent | 81a14b8837eba9b846ee9df47e497b07663dac3c (diff) |
added good (tm) button mappings for x5, and added ifdef for HAS_BUTTON_HOLD
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9319 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/plugins')
-rw-r--r-- | apps/plugins/doom/i_video.c | 17 |
1 files changed, 15 insertions, 2 deletions
diff --git a/apps/plugins/doom/i_video.c b/apps/plugins/doom/i_video.c index b77205ff84..1bfbf93ce8 100644 --- a/apps/plugins/doom/i_video.c +++ b/apps/plugins/doom/i_video.c @@ -16,7 +16,10 @@ * GNU General Public License for more details. * * $Log$ - * Revision 1.1 2006/03/28 15:44:01 dave + * Revision 1.2 2006/03/28 17:20:49 christian + * added good (tm) button mappings for x5, and added ifdef for HAS_BUTTON_HOLD + * + * Revision 1.1 2006-03-28 15:44:01 dave * Patch #2969 - Doom! Currently only working on the H300. * * @@ -116,6 +119,16 @@ void I_GetEvent(void) #define DOOMBUTTON_SHOOT BUTTON_PLAY #define DOOMBUTTON_ENTER BUTTON_SELECT #define DOOMBUTTON_OPEN BUTTON_MENU +#elif CONFIG_KEYPAD == IAUDIO_X5_PAD +#define DOOMBUTTON_UP BUTTON_UP +#define DOOMBUTTON_DOWN BUTTON_DOWN +#define DOOMBUTTON_LEFT BUTTON_LEFT +#define DOOMBUTTON_RIGHT BUTTON_RIGHT +#define DOOMBUTTON_SHOOT BUTTON_SELECT +#define DOOMBUTTON_OPEN BUTTON_PLAY +#define DOOMBUTTON_ESC BUTTON_POWER +#define DOOMBUTTON_ENTER BUTTON_SELECT +#define DOOMBUTTON_WEAPON BUTTON_REC #else #define DOOMBUTTON_UP BUTTON_UP #define DOOMBUTTON_DOWN BUTTON_DOWN @@ -135,7 +148,7 @@ int getkey(event_t * event) static int released, pressed; -#if CONFIG_KEYPAD == IRIVER_H300_PAD +#ifdef HAS_BUTTON_HOLD static unsigned int holdbutton=0; static int hswitch=0; if (rb->button_hold()&~holdbutton) |