diff options
author | Sebastian Leonhardt <sebastian.leonhardt@web.de> | 2015-07-20 01:50:26 +0200 |
---|---|---|
committer | Gerrit Rockbox <gerrit@rockbox.org> | 2015-11-15 23:46:39 +0100 |
commit | a507bb283782ee3adb1fc9ba0c6f094108ef558c (patch) | |
tree | acae6cf04f8e34172375061b6fbdc11b6ffb84cb /apps/plugins/flipit.c | |
parent | a8758c953d50fb020b245d5739c41de113638b49 (diff) | |
download | rockbox-a507bb283782ee3adb1fc9ba0c6f094108ef558c.tar.gz rockbox-a507bb283782ee3adb1fc9ba0c6f094108ef558c.zip |
YH8xx,YH9xx: Keymap improvement
The main "innovation" in this patch are two "virtual buttons"
for the record switch on YH92x targets. When the switch state
changes, a single BUTTON_REC_SW_ON or .._OFF button event will
be generated. Thus keymap code can react on switching, but
not on the actual state of the switch.
Wherever sensible, the following user scheme is applied:
- use PLAY as confirm button
- use REW button or Long REW to exit
- use REC (YH820) or FFWD (YH92X) as modifier key for button combos
Change-Id: Ic8d1db9cc6869daed8dda98990dfdf7f6fd5d5a1
Diffstat (limited to 'apps/plugins/flipit.c')
-rw-r--r-- | apps/plugins/flipit.c | 17 |
1 files changed, 12 insertions, 5 deletions
diff --git a/apps/plugins/flipit.c b/apps/plugins/flipit.c index 834dea3bf3..773bc080fb 100644 --- a/apps/plugins/flipit.c +++ b/apps/plugins/flipit.c | |||
@@ -351,11 +351,11 @@ | |||
351 | #define FLIPIT_RIGHT BUTTON_RIGHT | 351 | #define FLIPIT_RIGHT BUTTON_RIGHT |
352 | #define FLIPIT_UP BUTTON_UP | 352 | #define FLIPIT_UP BUTTON_UP |
353 | #define FLIPIT_DOWN BUTTON_DOWN | 353 | #define FLIPIT_DOWN BUTTON_DOWN |
354 | #define FLIPIT_QUIT BUTTON_REC | 354 | #define FLIPIT_QUIT (BUTTON_REW|BUTTON_REPEAT) |
355 | #define FLIPIT_SHUFFLE BUTTON_PLAY | 355 | #define FLIPIT_SHUFFLE (BUTTON_REW|BUTTON_REL) |
356 | #define FLIPIT_SOLVE BUTTON_FFWD | 356 | #define FLIPIT_SOLVE (BUTTON_FFWD|BUTTON_REPEAT) |
357 | #define FLIPIT_STEP_BY_STEP (BUTTON_FFWD|BUTTON_UP) | 357 | #define FLIPIT_STEP_BY_STEP (BUTTON_FFWD|BUTTON_REL) |
358 | #define FLIPIT_TOGGLE BUTTON_REW | 358 | #define FLIPIT_TOGGLE BUTTON_PLAY |
359 | 359 | ||
360 | #elif CONFIG_KEYPAD == PBELL_VIBE500_PAD | 360 | #elif CONFIG_KEYPAD == PBELL_VIBE500_PAD |
361 | 361 | ||
@@ -941,6 +941,13 @@ enum plugin_status plugin_start(const void* parameter) | |||
941 | rb->lcd_putsxy(2, 28, "[VOL+] shuffle"); | 941 | rb->lcd_putsxy(2, 28, "[VOL+] shuffle"); |
942 | rb->lcd_putsxy(2, 38, "[PREV] solution"); | 942 | rb->lcd_putsxy(2, 38, "[PREV] solution"); |
943 | rb->lcd_putsxy(2, 48, "[NEXT] step by step"); | 943 | rb->lcd_putsxy(2, 48, "[NEXT] step by step"); |
944 | #elif (CONFIG_KEYPAD == SAMSUNG_YH920_PAD) || \ | ||
945 | (CONFIG_KEYPAD == SAMSUNG_YH820_PAD) | ||
946 | rb->lcd_putsxy(2, 8, "Long [REW] to stop"); | ||
947 | rb->lcd_putsxy(2, 18, "[PLAY] toggle"); | ||
948 | rb->lcd_putsxy(2, 28, "[REW] shuffle"); | ||
949 | rb->lcd_putsxy(2, 38, "Long [FFWD] solution"); | ||
950 | rb->lcd_putsxy(2, 48, "[FFWD] step by step"); | ||
944 | #endif | 951 | #endif |
945 | 952 | ||
946 | #ifdef HAVE_TOUCHSCREEN | 953 | #ifdef HAVE_TOUCHSCREEN |