diff options
author | Dave Chapman <dave@dchapman.com> | 2005-09-22 20:17:21 +0000 |
---|---|---|
committer | Dave Chapman <dave@dchapman.com> | 2005-09-22 20:17:21 +0000 |
commit | 567718d8372564028ca85c8f5892c86659f14d4c (patch) | |
tree | 6f711142fa48eca120185313374cf1f006399bb9 /apps/plugins/sudoku.c | |
parent | b5f3365554d71fed035c641b07749a1a03b40ecb (diff) | |
download | rockbox-567718d8372564028ca85c8f5892c86659f14d4c.tar.gz rockbox-567718d8372564028ca85c8f5892c86659f14d4c.zip |
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/sudoku.c')
-rw-r--r-- | apps/plugins/sudoku.c | 7 |
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: | |||
79 | #elif (CONFIG_KEYPAD == IRIVER_H100_PAD) || \ | 79 | #elif (CONFIG_KEYPAD == IRIVER_H100_PAD) || \ |
80 | (CONFIG_KEYPAD == IRIVER_H300_PAD) | 80 | (CONFIG_KEYPAD == IRIVER_H300_PAD) |
81 | #define SUDOKU_BUTTON_QUIT BUTTON_OFF | 81 | #define SUDOKU_BUTTON_QUIT BUTTON_OFF |
82 | #define SUDOKU_BUTTON_ALTTOGGLE BUTTON_ON | ||
82 | #define SUDOKU_BUTTON_TOGGLE BUTTON_SELECT | 83 | #define SUDOKU_BUTTON_TOGGLE BUTTON_SELECT |
83 | #define SUDOKU_BUTTON_MENU BUTTON_MODE | 84 | #define SUDOKU_BUTTON_MENU BUTTON_MODE |
84 | 85 | ||
@@ -1089,12 +1090,18 @@ enum plugin_status plugin_start(struct plugin_api* api, void* parameter) | |||
1089 | break; | 1090 | break; |
1090 | 1091 | ||
1091 | /* Increment digit */ | 1092 | /* Increment digit */ |
1093 | #ifdef SUDOKU_BUTTON_ALTTOGGLE | ||
1094 | case SUDOKU_BUTTON_ALTTOGGLE | BUTTON_REPEAT: | ||
1095 | #endif | ||
1092 | case SUDOKU_BUTTON_TOGGLE | BUTTON_REPEAT: | 1096 | case SUDOKU_BUTTON_TOGGLE | BUTTON_REPEAT: |
1093 | /* Slow down the repeat speed to 1/3 second */ | 1097 | /* Slow down the repeat speed to 1/3 second */ |
1094 | if ((*rb->current_tick-ticks) < (HZ/3)) { | 1098 | if ((*rb->current_tick-ticks) < (HZ/3)) { |
1095 | break; | 1099 | break; |
1096 | } | 1100 | } |
1097 | 1101 | ||
1102 | #ifdef SUDOKU_BUTTON_ALTTOGGLE | ||
1103 | case SUDOKU_BUTTON_ALTTOGGLE: | ||
1104 | #endif | ||
1098 | case SUDOKU_BUTTON_TOGGLE: | 1105 | case SUDOKU_BUTTON_TOGGLE: |
1099 | /* Increment digit */ | 1106 | /* Increment digit */ |
1100 | ticks=*rb->current_tick; | 1107 | ticks=*rb->current_tick; |