summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMustapha Senhaji <moos@rockbox.org>2009-02-12 13:47:34 +0000
committerMustapha Senhaji <moos@rockbox.org>2009-02-12 13:47:34 +0000
commit281fc2e708980447db4eaa7abdd5f890919c0462 (patch)
tree0324ba36b75768ccff7aec0554bae2c7a6d48883
parentb63c5fdfb94381b10405dd73efc6219389d65d4a (diff)
downloadrockbox-281fc2e708980447db4eaa7abdd5f890919c0462.tar.gz
rockbox-281fc2e708980447db4eaa7abdd5f890919c0462.tar.bz2
rockbox-281fc2e708980447db4eaa7abdd5f890919c0462.zip
Goban plugin: FS#9897 by Joshua Simmons
Initial button maps for still unsuported targets (Sansa Fuze, Sansa Clip, Sansa m200, Creative ZV(M) and the Phillips HDD1630). Low targets like archos are still short in memory to be suported. Update the manual for the Sansa players. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19988 a1c6a512-1295-4272-9138-f99709370657
-rw-r--r--apps/plugins/SUBDIRS8
-rw-r--r--apps/plugins/goban/goban.h51
-rw-r--r--manual/plugins/goban.tex50
3 files changed, 79 insertions, 30 deletions
diff --git a/apps/plugins/SUBDIRS b/apps/plugins/SUBDIRS
index bdae8d2b0c..f07bf861b4 100644
--- a/apps/plugins/SUBDIRS
+++ b/apps/plugins/SUBDIRS
@@ -20,12 +20,8 @@ chessbox
jpeg
sudoku
reversi
-/* Exclude targets without keypads set or with not enough plugin buffer.
- Plugin is about 40k, rounding up to 65k to be safe. */
-#if (CONFIG_KEYPAD != SANSA_CLIP_PAD && CONFIG_KEYPAD != SANSA_M200_PAD && \
- CONFIG_KEYPAD != CREATIVEZVM_PAD && CONFIG_KEYPAD != CREATIVEZV_PAD && \
- CONFIG_KEYPAD != PHILIPS_HDD1630_PAD && defined(PLUGIN_BUFFER_SIZE) && \
- PLUGIN_BUFFER_SIZE >= 0x10000)
+/* Plugin is about 40k, rounding up to 65k to be safe. */
+#if (defined(PLUGIN_BUFFER_SIZE) && PLUGIN_BUFFER_SIZE >= 0x10000)
goban
#endif
#ifndef OLYMPUS_MROBE_500
diff --git a/apps/plugins/goban/goban.h b/apps/plugins/goban/goban.h
index c15eead13b..9e9dc73d91 100644
--- a/apps/plugins/goban/goban.h
+++ b/apps/plugins/goban/goban.h
@@ -100,7 +100,7 @@
#define GBN_BUTTON_MENU BUTTON_POWER
#define GBN_BUTTON_PLAY BUTTON_SELECT | BUTTON_REL
#define GBN_BUTTON_CONTEXT BUTTON_SELECT | BUTTON_REPEAT
-/* no next var */
+#define GBN_BUTTON_NEXT_VAR BUTTON_HOME
#elif (CONFIG_KEYPAD == SANSA_C200_PAD)
#define GBN_BUTTON_UP BUTTON_UP
@@ -114,6 +114,55 @@
#define GBN_BUTTON_CONTEXT BUTTON_SELECT | BUTTON_REPEAT
#define GBN_BUTTON_NEXT_VAR BUTTON_REC
+#elif (CONFIG_KEYPAD == SANSA_CLIP_PAD)
+#define GBN_BUTTON_UP BUTTON_UP
+#define GBN_BUTTON_DOWN BUTTON_DOWN
+#define GBN_BUTTON_LEFT BUTTON_LEFT
+#define GBN_BUTTON_RIGHT BUTTON_RIGHT
+#define GBN_BUTTON_RETREAT BUTTON_VOL_DOWN
+#define GBN_BUTTON_ADVANCE BUTTON_VOL_UP
+#define GBN_BUTTON_MENU BUTTON_POWER
+#define GBN_BUTTON_PLAY BUTTON_SELECT | BUTTON_REL
+#define GBN_BUTTON_CONTEXT BUTTON_SELECT | BUTTON_REPEAT
+#define GBN_BUTTON_NEXT_VAR BUTTON_HOME
+
+#elif (CONFIG_KEYPAD == SANSA_M200_PAD)
+#define GBN_BUTTON_UP BUTTON_UP
+#define GBN_BUTTON_DOWN BUTTON_DOWN
+#define GBN_BUTTON_LEFT BUTTON_LEFT
+#define GBN_BUTTON_RIGHT BUTTON_RIGHT
+#define GBN_BUTTON_RETREAT BUTTON_VOL_DOWN
+#define GBN_BUTTON_ADVANCE BUTTON_VOL_UP
+#define GBN_BUTTON_MENU BUTTON_POWER
+#define GBN_BUTTON_PLAY BUTTON_SELECT | BUTTON_REL
+#define GBN_BUTTON_CONTEXT BUTTON_SELECT | BUTTON_REPEAT
+/* No next var */
+
+#elif (CONFIG_KEYPAD == CREATIVEZVM_PAD) \
+ || (CONFIG_KEYPAD == CREATIVEZV_PAD)
+#define GBN_BUTTON_UP BUTTON_UP
+#define GBN_BUTTON_DOWN BUTTON_DOWN
+#define GBN_BUTTON_LEFT BUTTON_LEFT
+#define GBN_BUTTON_RIGHT BUTTON_RIGHT
+#define GBN_BUTTON_RETREAT BUTTON_BACK
+#define GBN_BUTTON_ADVANCE BUTTON_CUSTOM
+#define GBN_BUTTON_MENU BUTTON_MENU
+#define GBN_BUTTON_PLAY BUTTON_SELECT | BUTTON_REL
+#define GBN_BUTTON_CONTEXT BUTTON_SELECT | BUTTON_REPEAT
+#define GBN_BUTTON_NEXT_VAR BUTTON_PLAY
+
+#elif (CONFIG_KEYPAD == PHILIPS_HDD1630_PAD)
+#define GBN_BUTTON_UP BUTTON_UP
+#define GBN_BUTTON_DOWN BUTTON_DOWN
+#define GBN_BUTTON_LEFT BUTTON_LEFT
+#define GBN_BUTTON_RIGHT BUTTON_RIGHT
+#define GBN_BUTTON_RETREAT BUTTON_VOL_DOWN
+#define GBN_BUTTON_ADVANCE BUTTON_VOL_UP
+#define GBN_BUTTON_MENU BUTTON_MENU
+#define GBN_BUTTON_PLAY BUTTON_SELECT | BUTTON_REL
+#define GBN_BUTTON_CONTEXT BUTTON_SELECT | BUTTON_REPEAT
+#define GBN_BUTTON_NEXT_VAR BUTTON_VIEW
+
#elif (CONFIG_KEYPAD == GIGABEAT_PAD)
#define GBN_BUTTON_UP BUTTON_UP
#define GBN_BUTTON_DOWN BUTTON_DOWN
diff --git a/manual/plugins/goban.tex b/manual/plugins/goban.tex
index 79d1cc6046..5ccfdd1a39 100644
--- a/manual/plugins/goban.tex
+++ b/manual/plugins/goban.tex
@@ -37,10 +37,11 @@ these markers: \\
\emph{+ } & There are nodes after the current node in the SGF tree. \\
\emph{* } & There are sibling variations which can be navigated to using the %
\emph{Next Variation} menu option of the \emph{Context Menu}%
- \opt{SANSA_E200_PAD,SANSA_C200_PAD,SANSA_FUZE_PAD,RECORDER_PAD,%
- MROBE100_PAD,GIGABEAT_PAD,GIGABEAT_S_PAD,IRIVER_H100_PAD,%
+ \opt{SANSA_E200_PAD,SANSA_C200_PAD,SANSA_FUZE_PAD,SANSA_CLIP_PAD,%
+ RECORDER_PAD,MROBE100_PAD,GIGABEAT_PAD,GIGABEAT_S_PAD,IRIVER_H100_PAD,%
IRIVER_H300_PAD}{ or the %
- \opt{SANSA_E200_PAD,SANSA_FUZE_PAD,SANSA_C200_PAD}{\ButtonRec}%
+ \opt{SANSA_E200_PAD,SANSA_C200_PAD}{\ButtonRec}%
+ \opt{SANSA_FUZE_PAD,SANSA_CLIP_PAD}{\ButtonHome}%
\opt{RECORDER_PAD}{\ButtonOn}%
\opt{MROBE100_PAD}{\ButtonPower}%
\opt{GIGABEAT_PAD}{\ButtonA}%
@@ -54,26 +55,26 @@ these markers: \\
\subsubsection{Controls}
\begin{table}
\begin{btnmap}{}{}
- \opt{SANSA_E200_PAD,SANSA_FUZE_PAD,SANSA_C200_PAD,GIGABEAT_PAD,%
- GIGABEAT_S_PAD,IRIVER_H100_PAD,IRIVER_H300_PAD,MROBE100_PAD,%
+ \opt{SANSA_E200_PAD,SANSA_FUZE_PAD,SANSA_CLIP_PAD,SANSA_M200_PAD,SANSA_C200_PAD,%
+ GIGABEAT_PAD,GIGABEAT_S_PAD,IRIVER_H100_PAD,IRIVER_H300_PAD,MROBE100_PAD,%
IAUDIO_X5_PAD,RECORDER_PAD,ONDIO_PAD}{\ButtonUp}%
\opt{IPOD_1G2G_PAD,IPOD_3G_PAD,IPOD_4G_PAD}{\ButtonMenu}%
\opt{IRIVER_H10_PAD}{\ButtonScrollUp} & Move cursor up \\
- \opt{SANSA_E200_PAD,SANSA_FUZE_PAD,SANSA_C200_PAD,GIGABEAT_PAD,GIGABEAT_S_PAD,
- IRIVER_H100_PAD,IRIVER_H300_PAD,MROBE100_PAD,IAUDIO_X5_PAD,RECORDER_PAD,
- ONDIO_PAD}{\ButtonDown}%
+ \opt{SANSA_E200_PAD,SANSA_FUZE_PAD,SANSA_CLIP_PAD,SANSA_M200_PAD,SANSA_C200_PAD,%
+ GIGABEAT_PAD,GIGABEAT_S_PAD,IRIVER_H100_PAD,IRIVER_H300_PAD,MROBE100_PAD,%
+ IAUDIO_X5_PAD,RECORDER_PAD,ONDIO_PAD}{\ButtonDown}%
\opt{IPOD_1G2G_PAD,IPOD_3G_PAD,IPOD_4G_PAD}{\ButtonPlay}%
\opt{IRIVER_H10_PAD}{\ButtonScrollDown} & Move cursor down \\
- \opt{SANSA_E200_PAD,SANSA_FUZE_PAD,IPOD_1G2G_PAD,IPOD_3G_PAD,IPOD_4G_PAD,%
- SANSA_C200_PAD,GIGABEAT_PAD,GIGABEAT_S_PAD,IRIVER_H10_PAD,IRIVER_H100_PAD,%
- IRIVER_H300_PAD,MROBE100_PAD,IAUDIO_X5_PAD,RECORDER_PAD,%
+ \opt{SANSA_E200_PAD,SANSA_FUZE_PAD,SANSA_CLIP_PAD,SANSA_M200_PAD,IPOD_1G2G_PAD,%
+ IPOD_3G_PAD,IPOD_4G_PAD,SANSA_C200_PAD,GIGABEAT_PAD,GIGABEAT_S_PAD,IRIVER_H10_PAD,%
+ IRIVER_H100_PAD,IRIVER_H300_PAD,MROBE100_PAD,IAUDIO_X5_PAD,RECORDER_PAD,%
ONDIO_PAD}{\ButtonLeft} & Move cursor left %
\opt{ONDIO_PAD}{if in \emph{board} navigation mode, or %
retreat one node in the game tree if in %
\emph{tree} navigation mode} \\
- \opt{SANSA_E200_PAD,SANSA_FUZE_PAD,IPOD_1G2G_PAD,IPOD_3G_PAD,IPOD_4G_PAD,%
- SANSA_C200_PAD,GIGABEAT_PAD,GIGABEAT_S_PAD,IRIVER_H10_PAD,IRIVER_H100_PAD,%
- IRIVER_H300_PAD,MROBE100_PAD,IAUDIO_X5_PAD,RECORDER_PAD,%
+ \opt{SANSA_E200_PAD,SANSA_FUZE_PAD,SANSA_CLIP_PAD,SANSA_M200_PAD,IPOD_1G2G_PAD,%
+ IPOD_3G_PAD,IPOD_4G_PAD,SANSA_C200_PAD,GIGABEAT_PAD,GIGABEAT_S_PAD,IRIVER_H10_PAD,%
+ IRIVER_H100_PAD,IRIVER_H300_PAD,MROBE100_PAD,IAUDIO_X5_PAD,RECORDER_PAD,%
ONDIO_PAD}{\ButtonRight} & Move cursor right
\opt{ONDIO_PAD}{if in \emph{board} navigation mode, or advance one node in
the game tree if in \emph{tree} navigation mode} \\
@@ -81,14 +82,15 @@ these markers: \\
navigation modes \\}
\opt{SANSA_E200_PAD,SANSA_FUZE_PAD,IPOD_1G2G_PAD,IPOD_3G_PAD,IPOD_4G_PAD,%
SANSA_C200_PAD,GIGABEAT_PAD,GIGABEAT_S_PAD,IRIVER_H100_PAD,IRIVER_H300_PAD,%
- MROBE100_PAD,IAUDIO_X5_PAD}{\ButtonSelect}%
+ MROBE100_PAD,IAUDIO_X5_PAD,SANSA_CLIP_PAD,SANSA_M200_PAD}{\ButtonSelect}%
\opt{IRIVER_H10_PAD,RECORDER_PAD}{\ButtonPlay}%
\opt{ONDIO_PAD}{\ButtonMenu} & Play a move (or use a tool if play-mode has
been changed). \\
\nopt{ONDIO_PAD}{
\opt{SANSA_E200_PAD,SANSA_FUZE_PAD,IPOD_1G2G_PAD,IPOD_3G_PAD,%
IPOD_4G_PAD}{\ButtonScrollBack}%
- \opt{SANSA_C200_PAD,GIGABEAT_PAD,GIGABEAT_S_PAD}{\ButtonVolDown}%
+ \opt{SANSA_CLIP_PAD,SANSA_M200_PAD,SANSA_C200_PAD,GIGABEAT_PAD,%
+ GIGABEAT_S_PAD}{\ButtonVolDown}%
\opt{IRIVER_H10_PAD}{\ButtonFF}%
\opt{IRIVER_H100_PAD,IRIVER_H300_PAD}{\ButtonOff}%
\opt{MROBE100_PAD}{\ButtonMenu}%
@@ -96,14 +98,15 @@ these markers: \\
\opt{RECORDER_PAD}{\ButtonFOne} & Retreat one node in the game tree \\
\opt{SANSA_E200_PAD,SANSA_FUZE_PAD,IPOD_1G2G_PAD,IPOD_3G_PAD,IPOD_4G_PAD,%
IPOD_1G2G_PAD,IPOD_3G_PAD,IPOD_4G_PAD}{\ButtonScrollFwd}%
- \opt{SANSA_C200_PAD,GIGABEAT_PAD,GIGABEAT_S_PAD}{\ButtonVolUp}%
+ \opt{SANSA_CLIP_PAD,SANSA_M200_PAD,SANSA_C200_PAD,GIGABEAT_PAD,%
+ GIGABEAT_S_PAD}{\ButtonVolUp}%
\opt{IRIVER_H10_PAD}{\ButtonRew}%
\opt{IRIVER_H100_PAD,IRIVER_H300_PAD}{\ButtonOn}%
\opt{MROBE100_PAD}{\ButtonPlay}%
\opt{IAUDIO_X5_PAD}{\ButtonRec}%
\opt{RECORDER_PAD}{\ButtonFThree} & Advance one node in the game tree \\ }
- \opt{SANSA_E200_PAD,SANSA_FUZE_PAD,SANSA_C200_PAD,IRIVER_H10_PAD,%
- IAUDIO_X5_PAD}{\ButtonPower}%
+ \opt{SANSA_E200_PAD,SANSA_FUZE_PAD,SANSA_CLIP_PAD,SANSA_M200_PAD,SANSA_C200_PAD,%
+ IRIVER_H10_PAD,IAUDIO_X5_PAD}{\ButtonPower}%
\opt{MROBE100_PAD}{\ButtonDisplay}%
\opt{IPOD_1G2G_PAD,IPOD_3G_PAD,IPOD_4G_PAD}{Long \ButtonSelect}%
\opt{GIGABEAT_PAD,GIGABEAT_S_PAD}{\ButtonMenu}%
@@ -113,13 +116,14 @@ these markers: \\
\opt{SANSA_E200_PAD,SANSA_FUZE_PAD,SANSA_C200_PAD,GIGABEAT_PAD,GIGABEAT_S_PAD,%
IRIVER_H100_PAD,IRIVER_H300_PAD,MROBE100_PAD,IAUDIO_X5_PAD,%
IRIVER_H10_PAD}{%
- \opt{SANSA_E200_PAD,SANSA_FUZE_PAD,SANSA_C200_PAD,GIGABEAT_PAD,%
- GIGABEAT_S_PAD,IRIVER_H100_PAD,IRIVER_H300_PAD,MROBE100_PAD,%
+ \opt{SANSA_E200_PAD,SANSA_FUZE_PAD,SANSA_CLIP_PAD,SANSA_M200_PAD,SANSA_C200_PAD,%
+ GIGABEAT_PAD,GIGABEAT_S_PAD,IRIVER_H100_PAD,IRIVER_H300_PAD,MROBE100_PAD,%
IAUDIO_X5_PAD}{Long \ButtonSelect}%
\opt{IRIVER_H10_PAD}{Long \ButtonPlay} & Context Menu \\ }
\opt{SANSA_E200_PAD,SANSA_C200_PAD,SANSA_FUZE_PAD,RECORDER_PAD,MROBE100_PAD,%
- GIGABEAT_PAD,GIGABEAT_S_PAD,IRIVER_H100_PAD,IRIVER_H300_PAD}{%
- \opt{SANSA_E200_PAD,SANSA_FUZE_PAD}{\ButtonRec}%
+ GIGABEAT_PAD,GIGABEAT_S_PAD,IRIVER_H100_PAD,IRIVER_H300_PAD,SANSA_CLIP_PAD}{%
+ \opt{SANSA_E200_PAD}{\ButtonRec}%
+ \opt{SANSA_FUZE_PAD,SANSA_CLIP_PAD}{\ButtonHome}%
\opt{SANSA_C200_PAD}{\ButtonRec}%
\opt{RECORDER_PAD}{\ButtonOn}%
\opt{MROBE100_PAD}{\ButtonPower}%