diff options
author | Solomon Peachy <pizza@shaftnet.org> | 2018-06-28 06:24:26 -0400 |
---|---|---|
committer | Michael Giacomelli <giac2000@hotmail.com> | 2018-07-28 10:56:31 -0400 |
commit | 0662793ca0050e823cd1207cc4689a1cba5068bd (patch) | |
tree | 08cd2ec59c9044c96b697b5bf8d0640841d044e0 /apps/plugins/snake.c | |
parent | b3e2bd619b1b7ea94ef29d32db48e80b347a1990 (diff) | |
download | rockbox-0662793ca0050e823cd1207cc4689a1cba5068bd.tar.gz rockbox-0662793ca0050e823cd1207cc4689a1cba5068bd.zip |
Add cleaned-up xDuoo X3 support
Cleaned up, rebased, and forward-ported from the xvortex fork.
(original credit to vsoftster@gmail.com)
Change-Id: Ibcc023a0271ea81e901450a88317708c2683236d
Signed-off-by: Solomon Peachy <pizza@shaftnet.org>
Diffstat (limited to 'apps/plugins/snake.c')
-rw-r--r-- | apps/plugins/snake.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/apps/plugins/snake.c b/apps/plugins/snake.c index a73e61d9ec..9144edf062 100644 --- a/apps/plugins/snake.c +++ b/apps/plugins/snake.c | |||
@@ -289,6 +289,14 @@ dir is the current direction of the snake - 0=up, 1=right, 2=down, 3=left; | |||
289 | #define SNAKE_DOWN BUTTON_DOWN | 289 | #define SNAKE_DOWN BUTTON_DOWN |
290 | #define SNAKE_PLAYPAUSE BUTTON_SELECT | 290 | #define SNAKE_PLAYPAUSE BUTTON_SELECT |
291 | 291 | ||
292 | #elif CONFIG_KEYPAD == XDUOO_X3_PAD | ||
293 | #define SNAKE_QUIT BUTTON_POWER | ||
294 | #define SNAKE_LEFT BUTTON_PREV | ||
295 | #define SNAKE_RIGHT BUTTON_NEXT | ||
296 | #define SNAKE_UP BUTTON_HOME | ||
297 | #define SNAKE_DOWN BUTTON_OPTION | ||
298 | #define SNAKE_PLAYPAUSE BUTTON_PLAY | ||
299 | |||
292 | #else | 300 | #else |
293 | #error No keymap defined! | 301 | #error No keymap defined! |
294 | #endif | 302 | #endif |