Add ON button as an alternative toggle button for the iriver
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7543 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
b5f3365554
commit
567718d837
1 changed files with 7 additions and 0 deletions
|
@ -79,6 +79,7 @@ Example ".ss" file, and one with a saved state:
|
||||||
#elif (CONFIG_KEYPAD == IRIVER_H100_PAD) || \
|
#elif (CONFIG_KEYPAD == IRIVER_H100_PAD) || \
|
||||||
(CONFIG_KEYPAD == IRIVER_H300_PAD)
|
(CONFIG_KEYPAD == IRIVER_H300_PAD)
|
||||||
#define SUDOKU_BUTTON_QUIT BUTTON_OFF
|
#define SUDOKU_BUTTON_QUIT BUTTON_OFF
|
||||||
|
#define SUDOKU_BUTTON_ALTTOGGLE BUTTON_ON
|
||||||
#define SUDOKU_BUTTON_TOGGLE BUTTON_SELECT
|
#define SUDOKU_BUTTON_TOGGLE BUTTON_SELECT
|
||||||
#define SUDOKU_BUTTON_MENU BUTTON_MODE
|
#define SUDOKU_BUTTON_MENU BUTTON_MODE
|
||||||
|
|
||||||
|
@ -1089,12 +1090,18 @@ enum plugin_status plugin_start(struct plugin_api* api, void* parameter)
|
||||||
break;
|
break;
|
||||||
|
|
||||||
/* Increment digit */
|
/* Increment digit */
|
||||||
|
#ifdef SUDOKU_BUTTON_ALTTOGGLE
|
||||||
|
case SUDOKU_BUTTON_ALTTOGGLE | BUTTON_REPEAT:
|
||||||
|
#endif
|
||||||
case SUDOKU_BUTTON_TOGGLE | BUTTON_REPEAT:
|
case SUDOKU_BUTTON_TOGGLE | BUTTON_REPEAT:
|
||||||
/* Slow down the repeat speed to 1/3 second */
|
/* Slow down the repeat speed to 1/3 second */
|
||||||
if ((*rb->current_tick-ticks) < (HZ/3)) {
|
if ((*rb->current_tick-ticks) < (HZ/3)) {
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifdef SUDOKU_BUTTON_ALTTOGGLE
|
||||||
|
case SUDOKU_BUTTON_ALTTOGGLE:
|
||||||
|
#endif
|
||||||
case SUDOKU_BUTTON_TOGGLE:
|
case SUDOKU_BUTTON_TOGGLE:
|
||||||
/* Increment digit */
|
/* Increment digit */
|
||||||
ticks=*rb->current_tick;
|
ticks=*rb->current_tick;
|
||||||
|
|
Loading…
Reference in a new issue