diff options
| author | Barry Wardell <rockbox@barrywardell.net> | 2006-09-10 12:06:54 +0000 |
|---|---|---|
| committer | Barry Wardell <rockbox@barrywardell.net> | 2006-09-10 12:06:54 +0000 |
| commit | 2102dbf47e3a5c6ac51c8f8a45c3fbacd75ac928 (patch) | |
| tree | 32d80b28ccfd0bce200bbeb6884ac93992b6f8f0 /apps/plugins/bubbles.c | |
| parent | e605786b2a737246e5813b5af1a910a0797f36de (diff) | |
| download | rockbox-2102dbf47e3a5c6ac51c8f8a45c3fbacd75ac928.zip rockbox-2102dbf47e3a5c6ac51c8f8a45c3fbacd75ac928.tar.gz rockbox-2102dbf47e3a5c6ac51c8f8a45c3fbacd75ac928.tar.bz2 rockbox-2102dbf47e3a5c6ac51c8f8a45c3fbacd75ac928.tar.xz | |
New keymaps for H10. Makes the buttons much more intuitive and consistent. FS5962, FS5945, FS5940
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@10918 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/plugins/bubbles.c')
| -rwxr-xr-x | apps/plugins/bubbles.c | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/apps/plugins/bubbles.c b/apps/plugins/bubbles.c index f47889b..be3783c 100755 --- a/apps/plugins/bubbles.c +++ b/apps/plugins/bubbles.c @@ -2398,6 +2398,9 @@ static int bubbles_handlebuttons(struct game_context* bb, bool animblock, break; case BUBBLES_SELECT: /* fire the shot */ +#if CONFIG_KEYPAD == IRIVER_H10_PAD + case BUBBLES_UP: /* easier to press on H10 */ +#endif if(!animblock) { bb->elapsedlvl += bb->elapsedshot; bb->elapsedshot = 0; @@ -2519,6 +2522,22 @@ static int bubbles(struct game_context* bb) { "OFF to exit, " "UP to fire and show high scores, " "LEFT/RIGHT to aim and to change level."); +#elif CONFIG_KEYPAD == IRIVER_H10_PAD +#define BUBBLES_LEFT BUTTON_LEFT +#define BUBBLES_RIGHT BUTTON_RIGHT +#define BUBBLES_UP BUTTON_SCROLL_UP +#define BUBBLES_DOWN BUTTON_SCROLL_DOWN +#define BUBBLES_QUIT BUTTON_POWER +#define BUBBLES_START BUTTON_PLAY +#define BUBBLES_SELECT BUTTON_REW +#define BUBBLES_RESUME BUTTON_FF + rb->lcd_puts(0, 2, "PLAY to start/pause"); + rb->lcd_puts(0, 3, "FF to save/resume"); + rb->lcd_puts(0, 4, "POWER to exit"); + rb->lcd_puts(0, 5, "REW/UP to fire"); + rb->lcd_puts(0, 6, " and show high scores"); + rb->lcd_puts(0, 7, "LEFT/RIGHT to aim"); + rb->lcd_puts(0, 8, "UP/DOWN to change level"); #endif #if LCD_WIDTH >= 138 rb->snprintf(str, 28, "Start on level %d of %d", startlevel+1, |