summaryrefslogtreecommitdiff
path: root/apps/plugins
diff options
context:
space:
mode:
authorDave Chapman <dave@dchapman.com>2005-09-22 20:17:21 +0000
committerDave Chapman <dave@dchapman.com>2005-09-22 20:17:21 +0000
commit567718d8372564028ca85c8f5892c86659f14d4c (patch)
tree6f711142fa48eca120185313374cf1f006399bb9 /apps/plugins
parentb5f3365554d71fed035c641b07749a1a03b40ecb (diff)
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
Diffstat (limited to 'apps/plugins')
-rw-r--r--apps/plugins/sudoku.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/apps/plugins/sudoku.c b/apps/plugins/sudoku.c
index 12f8f67988..e6fdece7ef 100644
--- a/apps/plugins/sudoku.c
+++ b/apps/plugins/sudoku.c
@@ -79,6 +79,7 @@ Example ".ss" file, and one with a saved state:
#elif (CONFIG_KEYPAD == IRIVER_H100_PAD) || \
(CONFIG_KEYPAD == IRIVER_H300_PAD)
#define SUDOKU_BUTTON_QUIT BUTTON_OFF
+#define SUDOKU_BUTTON_ALTTOGGLE BUTTON_ON
#define SUDOKU_BUTTON_TOGGLE BUTTON_SELECT
#define SUDOKU_BUTTON_MENU BUTTON_MODE
@@ -1089,12 +1090,18 @@ enum plugin_status plugin_start(struct plugin_api* api, void* parameter)
break;
/* Increment digit */
+#ifdef SUDOKU_BUTTON_ALTTOGGLE
+ case SUDOKU_BUTTON_ALTTOGGLE | BUTTON_REPEAT:
+#endif
case SUDOKU_BUTTON_TOGGLE | BUTTON_REPEAT:
/* Slow down the repeat speed to 1/3 second */
if ((*rb->current_tick-ticks) < (HZ/3)) {
break;
}
+#ifdef SUDOKU_BUTTON_ALTTOGGLE
+ case SUDOKU_BUTTON_ALTTOGGLE:
+#endif
case SUDOKU_BUTTON_TOGGLE:
/* Increment digit */
ticks=*rb->current_tick;