Plugins now enabled and working for the Gigabeat S.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@16323 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
df71f4c509
commit
8215b34fdb
49 changed files with 404 additions and 15 deletions
|
@ -247,21 +247,21 @@ static const struct button_mapping button_context_keyboard[] = {
|
|||
{ ACTION_KBD_LEFT, BUTTON_LEFT|BUTTON_REPEAT, BUTTON_NONE },
|
||||
{ ACTION_KBD_RIGHT, BUTTON_RIGHT, BUTTON_NONE },
|
||||
{ ACTION_KBD_RIGHT, BUTTON_RIGHT|BUTTON_REPEAT, BUTTON_NONE },
|
||||
{ ACTION_KBD_CURSOR_LEFT, BUTTON_BACK|BUTTON_LEFT, BUTTON_NONE },
|
||||
{ ACTION_KBD_CURSOR_LEFT, BUTTON_BACK|BUTTON_LEFT|BUTTON_REPEAT, BUTTON_NONE },
|
||||
{ ACTION_KBD_CURSOR_RIGHT, BUTTON_BACK|BUTTON_RIGHT, BUTTON_NONE },
|
||||
{ ACTION_KBD_CURSOR_RIGHT, BUTTON_BACK|BUTTON_RIGHT|BUTTON_REPEAT, BUTTON_NONE },
|
||||
{ ACTION_KBD_CURSOR_LEFT, BUTTON_PREV, BUTTON_NONE },
|
||||
{ ACTION_KBD_CURSOR_LEFT, BUTTON_PREV|BUTTON_REPEAT, BUTTON_NONE },
|
||||
{ ACTION_KBD_CURSOR_RIGHT, BUTTON_NEXT, BUTTON_NONE },
|
||||
{ ACTION_KBD_CURSOR_RIGHT, BUTTON_NEXT|BUTTON_REPEAT, BUTTON_NONE },
|
||||
{ ACTION_KBD_SELECT, BUTTON_SELECT, BUTTON_NONE },
|
||||
{ ACTION_KBD_PAGE_FLIP, BUTTON_BACK|BUTTON_MENU, BUTTON_NONE },
|
||||
{ ACTION_KBD_DONE, BUTTON_BACK|BUTTON_REL, BUTTON_BACK },
|
||||
{ ACTION_KBD_ABORT, BUTTON_POWER|BUTTON_REL, BUTTON_POWER },
|
||||
{ ACTION_KBD_PAGE_FLIP, BUTTON_BACK|BUTTON_MENU, BUTTON_NONE },
|
||||
{ ACTION_KBD_DONE, BUTTON_PLAY|BUTTON_REL, BUTTON_PLAY },
|
||||
{ ACTION_KBD_ABORT, BUTTON_POWER|BUTTON_REL, BUTTON_POWER },
|
||||
{ ACTION_KBD_BACKSPACE, BUTTON_MENU, BUTTON_NONE },
|
||||
{ ACTION_KBD_BACKSPACE, BUTTON_MENU|BUTTON_REPEAT, BUTTON_NONE },
|
||||
{ ACTION_KBD_UP, BUTTON_UP, BUTTON_NONE },
|
||||
{ ACTION_KBD_UP, BUTTON_UP|BUTTON_REPEAT, BUTTON_NONE },
|
||||
{ ACTION_KBD_DOWN, BUTTON_DOWN, BUTTON_NONE },
|
||||
{ ACTION_KBD_DOWN, BUTTON_DOWN|BUTTON_REPEAT, BUTTON_NONE },
|
||||
{ ACTION_KBD_MORSE_INPUT, BUTTON_BACK|BUTTON_POWER, BUTTON_NONE },
|
||||
{ ACTION_KBD_MORSE_INPUT, BUTTON_BACK|BUTTON_POWER, BUTTON_NONE },
|
||||
{ ACTION_KBD_MORSE_SELECT, BUTTON_SELECT|BUTTON_REL, BUTTON_NONE },
|
||||
|
||||
LAST_ITEM_IN_LIST
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
#if !defined(IRIVER_IFP7XX_SERIES) && !defined(OLYMPUS_MROBE_100) && !defined(COWON_D2)
|
||||
#if !defined(IRIVER_IFP7XX_SERIES) && !defined(OLYMPUS_MROBE_100) && !defined(COWON_D2) && !defined(GIGABEAT_S)
|
||||
|
||||
/* For all targets */
|
||||
shortcuts
|
||||
|
|
|
@ -114,6 +114,13 @@ PLUGIN_HEADER
|
|||
#define BATTERY_ON_TXT "SELECT - start"
|
||||
#define BATTERY_OFF_TXT "POWER - quit"
|
||||
|
||||
#elif CONFIG_KEYPAD == GIGABEAT_S_PAD
|
||||
|
||||
#define BATTERY_ON BUTTON_SELECT
|
||||
#define BATTERY_OFF BUTTON_BACK
|
||||
#define BATTERY_ON_TXT "SELECT - start"
|
||||
#define BATTERY_OFF_TXT "BACK - quit"
|
||||
|
||||
#elif CONFIG_KEYPAD == MROBE500_PAD
|
||||
|
||||
#define BATTERY_ON BUTTON_RC_PLAY
|
||||
|
|
|
@ -203,6 +203,21 @@ PLUGIN_HEADER
|
|||
#define BJACK_RIGHT BUTTON_RIGHT
|
||||
#define BJACK_LEFT BUTTON_LEFT
|
||||
|
||||
#elif CONFIG_KEYPAD == GIGABEAT_S_PAD
|
||||
#define BJACK_START BUTTON_PLAY
|
||||
#define BJACK_QUIT BUTTON_BACK
|
||||
#define BJACK_MAX BUTTON_VOL_UP
|
||||
#define BJACK_MIN BUTTON_VOL_DOWN
|
||||
#define BJACK_HIT BUTTON_VOL_UP
|
||||
#define BJACK_STAY BUTTON_VOL_DOWN
|
||||
#define BJACK_DOUBLEDOWN BUTTON_SELECT
|
||||
#define BJACK_SCORES BUTTON_RIGHT
|
||||
#define BJACK_RESUME BUTTON_MENU
|
||||
#define BJACK_UP BUTTON_UP
|
||||
#define BJACK_DOWN BUTTON_DOWN
|
||||
#define BJACK_RIGHT BUTTON_RIGHT
|
||||
#define BJACK_LEFT BUTTON_LEFT
|
||||
|
||||
#else
|
||||
#error BLACKJACK: Unsupported keypad
|
||||
#endif
|
||||
|
|
|
@ -94,6 +94,11 @@ PLUGIN_HEADER
|
|||
#define BOUNCE_QUIT BUTTON_POWER
|
||||
#define BOUNCE_MODE BUTTON_PLAY
|
||||
|
||||
#elif (CONFIG_KEYPAD == GIGABEAT_S_PAD)
|
||||
#define BOUNCE_UP BUTTON_UP
|
||||
#define BOUNCE_DOWN BUTTON_DOWN
|
||||
#define BOUNCE_QUIT BUTTON_BACK
|
||||
#define BOUNCE_MODE BUTTON_MENU
|
||||
#endif
|
||||
|
||||
static struct plugin_api* rb;
|
||||
|
|
|
@ -135,6 +135,14 @@ PLUGIN_HEADER
|
|||
#define UP BUTTON_SCROLL_UP
|
||||
#define DOWN BUTTON_SCROLL_DOWN
|
||||
|
||||
#elif CONFIG_KEYPAD == GIGABEAT_S_PAD
|
||||
|
||||
#define QUIT BUTTON_BACK
|
||||
#define LEFT BUTTON_LEFT
|
||||
#define RIGHT BUTTON_RIGHT
|
||||
#define SELECT BUTTON_SELECT
|
||||
#define UP BUTTON_UP
|
||||
#define DOWN BUTTON_DOWN
|
||||
|
||||
#else
|
||||
#error Unsupported keypad
|
||||
|
|
|
@ -196,6 +196,16 @@ PLUGIN_HEADER
|
|||
#define CALCULATOR_CALC BUTTON_PLAY
|
||||
#define CALCULATOR_CLEAR BUTTON_REW
|
||||
|
||||
#elif (CONFIG_KEYPAD == GIGABEAT_S_PAD)
|
||||
|
||||
#define CALCULATOR_UP BUTTON_UP
|
||||
#define CALCULATOR_DOWN BUTTON_DOWN
|
||||
#define CALCULATOR_QUIT BUTTON_BACK
|
||||
#define CALCULATOR_INPUT_CALC_PRE BUTTON_MENU
|
||||
#define CALCULATOR_INPUT (BUTTON_MENU | BUTTON_REL)
|
||||
#define CALCULATOR_CALC BUTTON_SELECT
|
||||
#define CALCULATOR_CLEAR BUTTON_PLAY
|
||||
|
||||
#endif
|
||||
|
||||
static struct plugin_api* rb;
|
||||
|
|
|
@ -150,6 +150,16 @@ PLUGIN_HEADER
|
|||
#define CHC_SETTINGS_OK BUTTON_RC_PLAY
|
||||
#define CHC_SETTINGS_CANCEL BUTTON_POWER
|
||||
|
||||
#elif CONFIG_KEYPAD == GIGABEAT_S_PAD
|
||||
#define CHC_QUIT BUTTON_BACK
|
||||
#define CHC_STARTSTOP BUTTON_PLAY
|
||||
#define CHC_RESET BUTTON_PREV
|
||||
#define CHC_MENU BUTTON_MENU
|
||||
#define CHC_SETTINGS_INC BUTTON_UP
|
||||
#define CHC_SETTINGS_DEC BUTTON_DOWN
|
||||
#define CHC_SETTINGS_OK BUTTON_SELECT
|
||||
#define CHC_SETTINGS_CANCEL BUTTON_BACK
|
||||
|
||||
#endif
|
||||
|
||||
|
||||
|
|
|
@ -1044,6 +1044,18 @@ STATIC void chip8 (void)
|
|||
#define CHIP8_KEY6 BUTTON_RIGHT
|
||||
#define CHIP8_KEY8 BUTTON_SCROLL_DOWN
|
||||
|
||||
#elif (CONFIG_KEYPAD == GIGABEAT_S_PAD)
|
||||
#define CHIP8_OFF BUTTON_BACK
|
||||
#define CHIP8_KEY1 BUTTON_MENU
|
||||
#define CHIP8_KEY2 BUTTON_UP
|
||||
#define CHIP8_KEY3 BUTTON_VOL_DOWN
|
||||
#define CHIP8_KEY4 BUTTON_LEFT
|
||||
#define CHIP8_KEY5 BUTTON_SELECT
|
||||
#define CHIP8_KEY6 BUTTON_RIGHT
|
||||
#define CHIP8_KEY7 BUTTON_VOL_UP
|
||||
#define CHIP8_KEY8 BUTTON_DOWN
|
||||
#define CHIP8_KEY9 BUTTON_PLAY
|
||||
|
||||
#endif
|
||||
|
||||
static byte chip8_virtual_keys[16];
|
||||
|
|
|
@ -86,6 +86,12 @@ Still To do:
|
|||
#define ACTION2 BUTTON_MENU
|
||||
#define ACTIONTEXT "UP"
|
||||
|
||||
#elif CONFIG_KEYPAD == GIGABEAT_S_PAD
|
||||
#define QUIT BUTTON_BACK
|
||||
#define ACTION BUTTON_SELECT
|
||||
#define ACTION2 BUTTON_MENU
|
||||
#define ACTIONTEXT "SELECT"
|
||||
|
||||
#else
|
||||
#error Unsupported keypad
|
||||
#endif
|
||||
|
|
|
@ -204,6 +204,19 @@ PLUGIN_HEADER
|
|||
#define CUBE_PAUSE (BUTTON_RC_HEART | BUTTON_REL)
|
||||
#define CUBE_HIGHSPEED BUTTON_RC_HEART
|
||||
|
||||
#elif CONFIG_KEYPAD == GIGABEAT_S_PAD
|
||||
#define CUBE_QUIT BUTTON_BACK
|
||||
#define CUBE_X_INC BUTTON_LEFT
|
||||
#define CUBE_X_DEC BUTTON_RIGHT
|
||||
#define CUBE_Y_INC BUTTON_UP
|
||||
#define CUBE_Y_DEC BUTTON_DOWN
|
||||
#define CUBE_Z_INC BUTTON_VOL_UP
|
||||
#define CUBE_Z_DEC BUTTON_VOL_DOWN
|
||||
#define CUBE_MODE BUTTON_PREV
|
||||
#define CUBE_PAUSE_PRE BUTTON_PLAY
|
||||
#define CUBE_PAUSE (BUTTON_PLAY | BUTTON_REL)
|
||||
#define CUBE_HIGHSPEED (BUTTON_NEXT | BUTTON_REL)
|
||||
|
||||
#endif
|
||||
|
||||
#ifdef HAVE_LCD_BITMAP
|
||||
|
|
|
@ -121,6 +121,8 @@ long reverse (long N) {
|
|||
#define LP_QUIT BUTTON_POWER
|
||||
#elif CONFIG_KEYPAD == MROBE500_PAD
|
||||
#define LP_QUIT BUTTON_POWER
|
||||
#elif CONFIG_KEYPAD == GIGABEAT_S_PAD
|
||||
#define LP_QUIT BUTTON_BACK
|
||||
#else
|
||||
#define LP_QUIT BUTTON_OFF
|
||||
#endif
|
||||
|
|
|
@ -73,6 +73,9 @@ enum tidy_system
|
|||
#elif CONFIG_KEYPAD == IRIVER_H10_PAD
|
||||
#define TIDY_STOP BUTTON_POWER
|
||||
|
||||
#elif CONFIG_KEYPAD == GIGABEAT_S_PAD
|
||||
#define TIDY_STOP BUTTON_BACK
|
||||
|
||||
#else
|
||||
#error DISKTIDY: Unsupported keypad
|
||||
#endif
|
||||
|
|
|
@ -54,7 +54,8 @@ static struct plugin_api* rb;
|
|||
#elif (CONFIG_KEYPAD == IRIVER_IFP7XX_PAD)
|
||||
#define BTN_MENU BUTTON_MODE
|
||||
#define BTN_FIRE BUTTON_SELECT
|
||||
#elif (CONFIG_KEYPAD == GIGABEAT_PAD)
|
||||
#elif (CONFIG_KEYPAD == GIGABEAT_PAD) || \
|
||||
(CONFIG_KEYPAD == GIGABEAT_S_PAD)
|
||||
#define BTN_MENU BUTTON_MENU
|
||||
#define BTN_FIRE BUTTON_SELECT
|
||||
#elif (CONFIG_KEYPAD == SANSA_E200_PAD) || \
|
||||
|
|
|
@ -129,6 +129,16 @@ PLUGIN_HEADER
|
|||
#define FLIPIT_TOGGLE_PRE BUTTON_REW
|
||||
#define FLIPIT_TOGGLE (BUTTON_REW | BUTTON_REL)
|
||||
|
||||
#elif CONFIG_KEYPAD == GIGABEAT_S_PAD
|
||||
|
||||
#define FLIPIT_UP BUTTON_UP
|
||||
#define FLIPIT_DOWN BUTTON_DOWN
|
||||
#define FLIPIT_QUIT BUTTON_BACK
|
||||
#define FLIPIT_SHUFFLE BUTTON_MENU
|
||||
#define FLIPIT_SOLVE BUTTON_VOL_UP
|
||||
#define FLIPIT_STEP_BY_STEP BUTTON_VOL_DOWN
|
||||
#define FLIPIT_TOGGLE BUTTON_SELECT
|
||||
|
||||
#endif
|
||||
|
||||
static struct plugin_api* rb;
|
||||
|
|
|
@ -107,6 +107,13 @@ PLUGIN_HEADER
|
|||
#define RIGHT BUTTON_RIGHT
|
||||
#define FIRE BUTTON_MENU
|
||||
|
||||
#elif CONFIG_KEYPAD == GIGABEAT_S_PAD
|
||||
|
||||
#define QUIT BUTTON_BACK
|
||||
#define LEFT BUTTON_LEFT
|
||||
#define RIGHT BUTTON_RIGHT
|
||||
#define FIRE BUTTON_SELECT
|
||||
|
||||
#else
|
||||
#error INVADROX: Unsupported keypad
|
||||
#endif
|
||||
|
|
|
@ -112,6 +112,14 @@ PLUGIN_HEADER
|
|||
#define JEWELS_SELECT BUTTON_PLAY
|
||||
#define JEWELS_CANCEL BUTTON_POWER
|
||||
|
||||
#elif CONFIG_KEYPAD == GIGABEAT_S_PAD
|
||||
#define JEWELS_UP BUTTON_UP
|
||||
#define JEWELS_DOWN BUTTON_DOWN
|
||||
#define JEWELS_LEFT BUTTON_LEFT
|
||||
#define JEWELS_RIGHT BUTTON_RIGHT
|
||||
#define JEWELS_SELECT BUTTON_SELECT
|
||||
#define JEWELS_CANCEL BUTTON_BACK
|
||||
|
||||
#else
|
||||
#error JEWELS: Unsupported keypad
|
||||
#endif
|
||||
|
|
|
@ -176,6 +176,17 @@ PLUGIN_HEADER
|
|||
#define JPEG_NEXT BUTTON_RC_HEART
|
||||
#define JPEG_PREVIOUS BUTTON_RC_MODE
|
||||
|
||||
#elif CONFIG_KEYPAD == GIGABEAT_S_PAD
|
||||
#define JPEG_ZOOM_IN BUTTON_VOL_UP
|
||||
#define JPEG_ZOOM_OUT BUTTON_VOL_DOWN
|
||||
#define JPEG_UP BUTTON_UP
|
||||
#define JPEG_DOWN BUTTON_DOWN
|
||||
#define JPEG_LEFT BUTTON_LEFT
|
||||
#define JPEG_RIGHT BUTTON_RIGHT
|
||||
#define JPEG_MENU BUTTON_MENU
|
||||
#define JPEG_NEXT BUTTON_NEXT
|
||||
#define JPEG_PREVIOUS BUTTON_PREV
|
||||
|
||||
#endif
|
||||
|
||||
/* different graphics libraries */
|
||||
|
|
|
@ -72,7 +72,8 @@ const struct button_mapping generic_directions[] =
|
|||
|| (CONFIG_KEYPAD == RECORDER_PAD) \
|
||||
|| (CONFIG_KEYPAD == ARCHOS_AV300_PAD) \
|
||||
|| (CONFIG_KEYPAD == IRIVER_IFP7XX_PAD) \
|
||||
|| (CONFIG_KEYPAD == SANSA_C200_PAD)
|
||||
|| (CONFIG_KEYPAD == SANSA_C200_PAD) \
|
||||
|| (CONFIG_KEYPAD == GIGABEAT_S_PAD)
|
||||
{ PLA_UP, BUTTON_UP, BUTTON_NONE},
|
||||
{ PLA_DOWN, BUTTON_DOWN, BUTTON_NONE},
|
||||
{ PLA_LEFT, BUTTON_LEFT, BUTTON_NONE},
|
||||
|
@ -151,7 +152,8 @@ const struct button_mapping generic_left_right_fire[] =
|
|||
|| (CONFIG_KEYPAD == IRIVER_H300_PAD) \
|
||||
|| (CONFIG_KEYPAD == IAUDIO_X5M5_PAD) \
|
||||
|| (CONFIG_KEYPAD == GIGABEAT_PAD) \
|
||||
|| (CONFIG_KEYPAD == IRIVER_IFP7XX_PAD)
|
||||
|| (CONFIG_KEYPAD == IRIVER_IFP7XX_PAD) \
|
||||
|| (CONFIG_KEYPAD == GIGABEAT_S_PAD)
|
||||
{ PLA_LEFT, BUTTON_LEFT, BUTTON_NONE},
|
||||
{ PLA_RIGHT, BUTTON_RIGHT, BUTTON_NONE},
|
||||
{ PLA_LEFT_REPEAT, BUTTON_LEFT|BUTTON_REPEAT, BUTTON_NONE},
|
||||
|
@ -268,6 +270,12 @@ const struct button_mapping generic_actions[] =
|
|||
{PLA_MENU, BUTTON_MENU, BUTTON_NONE},
|
||||
{PLA_FIRE, BUTTON_SELECT, BUTTON_NONE},
|
||||
{PLA_FIRE_REPEAT, BUTTON_SELECT|BUTTON_REPEAT, BUTTON_NONE},
|
||||
#elif CONFIG_KEYPAD == GIGABEAT_S_PAD
|
||||
{PLA_QUIT, BUTTON_BACK, BUTTON_NONE},
|
||||
{PLA_START, BUTTON_PLAY, BUTTON_NONE},
|
||||
{PLA_MENU, BUTTON_MENU, BUTTON_NONE},
|
||||
{PLA_FIRE, BUTTON_SELECT, BUTTON_NONE},
|
||||
{PLA_FIRE_REPEAT, BUTTON_SELECT|BUTTON_REPEAT, BUTTON_NONE},
|
||||
#elif CONFIG_KEYPAD == RECORDER_PAD
|
||||
{PLA_QUIT, BUTTON_OFF, BUTTON_NONE},
|
||||
{PLA_START, BUTTON_ON, BUTTON_NONE},
|
||||
|
@ -345,7 +353,8 @@ const struct button_mapping generic_increase_decrease[] =
|
|||
|| (CONFIG_KEYPAD == ARCHOS_AV300_PAD) \
|
||||
|| (CONFIG_KEYPAD == IRIVER_IFP7XX_PAD) \
|
||||
|| (CONFIG_KEYPAD == ONDIO_PAD) \
|
||||
|| (CONFIG_KEYPAD == COWOND2_PAD)
|
||||
|| (CONFIG_KEYPAD == COWOND2_PAD) \
|
||||
|| (CONFIG_KEYPAD == GIGABEAT_S_PAD)
|
||||
{PLA_INC, BUTTON_UP, BUTTON_NONE},
|
||||
{PLA_DEC, BUTTON_DOWN, BUTTON_NONE},
|
||||
{PLA_INC_REPEAT, BUTTON_UP|BUTTON_REPEAT, BUTTON_NONE},
|
||||
|
|
|
@ -111,6 +111,13 @@ const unsigned char rockbox16x7[] = {
|
|||
#define LP_DEC_Y BUTTON_RC_DOWN
|
||||
#define LP_INC_Y BUTTON_RC_PLAY
|
||||
|
||||
#elif CONFIG_KEYPAD == GIGABEAT_S_PAD
|
||||
#define LP_QUIT BUTTON_BACK
|
||||
#define LP_DEC_X BUTTON_LEFT
|
||||
#define LP_INC_X BUTTON_RIGHT
|
||||
#define LP_DEC_Y BUTTON_DOWN
|
||||
#define LP_INC_Y BUTTON_UP
|
||||
|
||||
#else
|
||||
#define LP_QUIT BUTTON_OFF
|
||||
#define LP_DEC_X BUTTON_LEFT
|
||||
|
|
|
@ -176,6 +176,18 @@ PLUGIN_HEADER
|
|||
#define MANDELBROT_MAXITER_DEC (BUTTON_PLAY | BUTTON_LEFT)
|
||||
#define MANDELBROT_RESET BUTTON_MODE
|
||||
|
||||
#elif CONFIG_KEYPAD == GIGABEAT_S_PAD
|
||||
#define MANDELBROT_QUIT BUTTON_BACK
|
||||
#define MANDELBROT_UP BUTTON_UP
|
||||
#define MANDELBROT_DOWN BUTTON_DOWN
|
||||
#define MANDELBROT_LEFT BUTTON_LEFT
|
||||
#define MANDELBROT_RIGHT BUTTON_RIGHT
|
||||
#define MANDELBROT_ZOOM_IN BUTTON_VOL_UP
|
||||
#define MANDELBROT_ZOOM_OUT BUTTON_VOL_DOWN
|
||||
#define MANDELBROT_MAXITER_INC BUTTON_PREV
|
||||
#define MANDELBROT_MAXITER_DEC BUTTON_NEXT
|
||||
#define MANDELBROT_RESET BUTTON_MENU
|
||||
|
||||
#endif
|
||||
|
||||
#if LCD_DEPTH < 8
|
||||
|
|
|
@ -85,6 +85,11 @@ extern const fb_data matrix_normal[];
|
|||
#define MATRIX_SLEEP_MORE BUTTON_UP
|
||||
#define MATRIX_SLEEP_LESS BUTTON_DOWN
|
||||
#define MATRIX_PAUSE BUTTON_SELECT
|
||||
#elif (CONFIG_KEYPAD == GIGABEAT_S_PAD)
|
||||
#define MATRIX_EXIT BUTTON_BACK
|
||||
#define MATRIX_SLEEP_MORE BUTTON_UP
|
||||
#define MATRIX_SLEEP_LESS BUTTON_DOWN
|
||||
#define MATRIX_PAUSE BUTTON_SELECT
|
||||
#else
|
||||
#error Unsupported keypad
|
||||
#endif
|
||||
|
|
|
@ -141,6 +141,18 @@ MEM_FUNCTION_WRAPPERS(rb);
|
|||
#define MAZEZAM_QUIT BUTTON_POWER
|
||||
#define MAZEZAM_QUIT_KEYNAME "[POWER]"
|
||||
|
||||
#elif (CONFIG_KEYPAD == GIGABEAT_S_PAD)
|
||||
#define MAZEZAM_UP BUTTON_UP
|
||||
#define MAZEZAM_DOWN BUTTON_DOWN
|
||||
#define MAZEZAM_LEFT BUTTON_LEFT
|
||||
#define MAZEZAM_RIGHT BUTTON_RIGHT
|
||||
#define MAZEZAM_SELECT BUTTON_SELECT
|
||||
|
||||
#define MAZEZAM_RETRY BUTTON_PLAY
|
||||
#define MAZEZAM_RETRY_KEYNAME "[PLAY]"
|
||||
#define MAZEZAM_QUIT BUTTON_BACK
|
||||
#define MAZEZAM_QUIT_KEYNAME "[BACK]"
|
||||
|
||||
#endif
|
||||
|
||||
/* The gap for the border around the heading in text pages. In fact, 2 is
|
||||
|
|
|
@ -133,6 +133,14 @@ enum minesweeper_status {
|
|||
# define MINESWP_DISCOVER BUTTON_REW
|
||||
# define MINESWP_INFO (BUTTON_REW | BUTTON_PLAY)
|
||||
|
||||
#elif (CONFIG_KEYPAD == GIGABEAT_S_PAD)
|
||||
# define MINESWP_UP BUTTON_UP
|
||||
# define MINESWP_DOWN BUTTON_DOWN
|
||||
# define MINESWP_QUIT BUTTON_BACK
|
||||
# define MINESWP_TOGGLE BUTTON_PLAY
|
||||
# define MINESWP_DISCOVER BUTTON_SELECT
|
||||
# define MINESWP_INFO BUTTON_MENU
|
||||
|
||||
#else
|
||||
# warning Missing key definitions for this keypad
|
||||
#endif
|
||||
|
|
|
@ -107,6 +107,11 @@ PLUGIN_HEADER
|
|||
#define MOSAIQUE_SPEED BUTTON_RC_FF
|
||||
#define MOSAIQUE_RESTART BUTTON_RC_PLAY
|
||||
|
||||
#elif CONFIG_KEYPAD == GIGABEAT_S_PAD
|
||||
#define MOSAIQUE_QUIT BUTTON_BACK
|
||||
#define MOSAIQUE_SPEED BUTTON_SELECT
|
||||
#define MOSAIQUE_RESTART BUTTON_MENU
|
||||
|
||||
#endif
|
||||
|
||||
enum plugin_status plugin_start(struct plugin_api* api, void* parameter)
|
||||
|
|
|
@ -2317,6 +2317,11 @@ void get_mp3_filename(char *wav_name)
|
|||
#define MP3ENC_NEXT BUTTON_SCROLL_DOWN
|
||||
#define MP3ENC_DONE BUTTON_POWER
|
||||
#define MP3ENC_SELECT BUTTON_PLAY
|
||||
#elif CONFIG_KEYPAD == GIGABEAT_S_PAD
|
||||
#define MP3ENC_PREV BUTTON_UP
|
||||
#define MP3ENC_NEXT BUTTON_DOWN
|
||||
#define MP3ENC_DONE BUTTON_BACK
|
||||
#define MP3ENC_SELECT BUTTON_SELECT
|
||||
#endif
|
||||
|
||||
enum plugin_status plugin_start(struct plugin_api* api, void* parameter)
|
||||
|
|
|
@ -146,6 +146,18 @@ PLUGIN_HEADER
|
|||
#define OSCILLOSCOPE_VOL_UP BUTTON_SCROLL_UP
|
||||
#define OSCILLOSCOPE_VOL_DOWN BUTTON_SCROLL_DOWN
|
||||
|
||||
#elif CONFIG_KEYPAD == GIGABEAT_S_PAD
|
||||
#define OSCILLOSCOPE_QUIT BUTTON_BACK
|
||||
#define OSCILLOSCOPE_DRAWMODE BUTTON_PREV
|
||||
#define OSCILLOSCOPE_ADVMODE BUTTON_NEXT
|
||||
#define OSCILLOSCOPE_ORIENTATION BUTTON_MENU
|
||||
#define OSCILLOSCOPE_PAUSE BUTTON_PLAY
|
||||
#define OSCILLOSCOPE_SPEED_UP BUTTON_RIGHT
|
||||
#define OSCILLOSCOPE_SPEED_DOWN BUTTON_LEFT
|
||||
#define OSCILLOSCOPE_VOL_UP BUTTON_VOL_UP
|
||||
#define OSCILLOSCOPE_VOL_DOWN BUTTON_VOL_DOWN
|
||||
|
||||
|
||||
#endif
|
||||
|
||||
/* colours */
|
||||
|
|
|
@ -78,6 +78,10 @@ static int plasma_frequency;
|
|||
#define PLASMA_QUIT BUTTON_POWER
|
||||
#define PLASMA_INCREASE_FREQUENCY BUTTON_SCROLL_UP
|
||||
#define PLASMA_DECREASE_FREQUENCY BUTTON_SCROLL_DOWN
|
||||
#elif (CONFIG_KEYPAD == GIGABEAT_S_PAD)
|
||||
#define PLASMA_QUIT BUTTON_BACK
|
||||
#define PLASMA_INCREASE_FREQUENCY BUTTON_UP
|
||||
#define PLASMA_DECREASE_FREQUENCY BUTTON_DOWN
|
||||
#else
|
||||
#define PLASMA_QUIT BUTTON_OFF
|
||||
#define PLASMA_INCREASE_FREQUENCY BUTTON_UP
|
||||
|
@ -101,6 +105,8 @@ static int plasma_frequency;
|
|||
#define PLASMA_REGEN_COLORS BUTTON_SELECT
|
||||
#elif CONFIG_KEYPAD == GIGABEAT_PAD
|
||||
#define PLASMA_REGEN_COLORS BUTTON_SELECT
|
||||
#elif CONFIG_KEYPAD == GIGABEAT_S_PAD
|
||||
#define PLASMA_REGEN_COLORS BUTTON_SELECT
|
||||
#endif
|
||||
#endif
|
||||
|
||||
|
|
|
@ -22,6 +22,10 @@ OUTPUT_FORMAT(elf32-sh)
|
|||
#elif CONFIG_CPU==DM320
|
||||
#include "dm320.h"
|
||||
#define DRAMSIZE (MEMORYSIZE * 0x100000) - PLUGIN_BUFFER_SIZE - STUBOFFSET - CODEC_SIZE - LCD_BUFFER_SIZE - TTB_SIZE
|
||||
#elif CONFIG_CPU==IMX31L
|
||||
#include "imx31l.h"
|
||||
/* Reserve 1mb for LCD buffer/TTB as in app.lds */
|
||||
#define DRAMSIZE (MEMORYSIZE * 0x100000 - 0x100000) - PLUGIN_BUFFER_SIZE - STUBOFFSET - CODEC_SIZE
|
||||
#else
|
||||
#define DRAMSIZE (MEMORYSIZE * 0x100000) - PLUGIN_BUFFER_SIZE - STUBOFFSET - CODEC_SIZE
|
||||
#endif
|
||||
|
@ -52,7 +56,7 @@ OUTPUT_FORMAT(elf32-sh)
|
|||
#define IRAMSIZE 4K
|
||||
#define IRAM DRAM
|
||||
#elif CONFIG_CPU == IMX31L
|
||||
#define DRAMORIG 0x80000000
|
||||
#define DRAMORIG 0x0
|
||||
#define IRAMORIG 0x1FFFC000
|
||||
#define IRAMSIZE 0x4000
|
||||
#elif CONFIG_CPU==DM320
|
||||
|
|
|
@ -123,6 +123,13 @@ PLUGIN_HEADER
|
|||
#define PONG_RIGHT_UP BUTTON_REW
|
||||
#define PONG_RIGHT_DOWN BUTTON_FF
|
||||
|
||||
#elif (CONFIG_KEYPAD == GIGABEAT_S_PAD)
|
||||
#define PONG_QUIT BUTTON_BACK
|
||||
#define PONG_LEFT_UP BUTTON_UP
|
||||
#define PONG_LEFT_DOWN BUTTON_DOWN
|
||||
#define PONG_RIGHT_UP BUTTON_VOL_UP
|
||||
#define PONG_RIGHT_DOWN BUTTON_VOL_DOWN
|
||||
|
||||
#endif
|
||||
|
||||
static struct plugin_api* rb;
|
||||
|
|
|
@ -177,6 +177,17 @@ PLUGIN_HEADER
|
|||
#define ROCKBLOX_DROP BUTTON_RC_HEART
|
||||
#define ROCKBLOX_RESTART BUTTON_RC_MODE
|
||||
|
||||
#elif CONFIG_KEYPAD == GIGABEAT_S_PAD
|
||||
#define ROCKBLOX_OFF BUTTON_BACK
|
||||
#define ROCKBLOX_ROTATE_RIGHT BUTTON_VOL_DOWN
|
||||
#define ROCKBLOX_ROTATE_LEFT BUTTON_VOL_UP
|
||||
#define ROCKBLOX_ROTATE BUTTON_UP
|
||||
#define ROCKBLOX_DOWN BUTTON_DOWN
|
||||
#define ROCKBLOX_LEFT BUTTON_LEFT
|
||||
#define ROCKBLOX_RIGHT BUTTON_RIGHT
|
||||
#define ROCKBLOX_DROP BUTTON_SELECT
|
||||
#define ROCKBLOX_RESTART BUTTON_PLAY
|
||||
|
||||
#endif
|
||||
|
||||
#define BLOCKS_NUM 7
|
||||
|
|
|
@ -105,6 +105,17 @@ PLUGIN_HEADER
|
|||
#define ROCKPAINT_LEFT BUTTON_LEFT
|
||||
#define ROCKPAINT_RIGHT BUTTON_RIGHT
|
||||
|
||||
#elif CONFIG_KEYPAD == GIGABEAT_S_PAD
|
||||
#define ROCKPAINT_QUIT BUTTON_BACK
|
||||
#define ROCKPAINT_DRAW BUTTON_SELECT
|
||||
#define ROCKPAINT_MENU BUTTON_MENU
|
||||
#define ROCKPAINT_TOOLBAR BUTTON_PLAY
|
||||
#define ROCKPAINT_TOOLBAR2 ( BUTTON_PLAY | BUTTON_LEFT )
|
||||
#define ROCKPAINT_UP BUTTON_UP
|
||||
#define ROCKPAINT_DOWN BUTTON_DOWN
|
||||
#define ROCKPAINT_LEFT BUTTON_LEFT
|
||||
#define ROCKPAINT_RIGHT BUTTON_RIGHT
|
||||
|
||||
#else
|
||||
#error "Please define keys for this keypad"
|
||||
#endif
|
||||
|
|
|
@ -93,6 +93,13 @@ PLUGIN_HEADER
|
|||
#define PUZZLE_SHUFFLE BUTTON_REW
|
||||
#define PUZZLE_PICTURE BUTTON_PLAY
|
||||
|
||||
#elif (CONFIG_KEYPAD == GIGABEAT_S_PAD)
|
||||
#define PUZZLE_QUIT BUTTON_BACK
|
||||
#define PUZZLE_UP BUTTON_UP
|
||||
#define PUZZLE_DOWN BUTTON_DOWN
|
||||
#define PUZZLE_SHUFFLE BUTTON_SELECT
|
||||
#define PUZZLE_PICTURE BUTTON_MENU
|
||||
|
||||
#endif
|
||||
|
||||
|
||||
|
|
|
@ -96,6 +96,12 @@ PLUGIN_HEADER
|
|||
#define SNAKE_DOWN BUTTON_SCROLL_DOWN
|
||||
#define SNAKE_PLAYPAUSE BUTTON_PLAY
|
||||
|
||||
#elif (CONFIG_KEYPAD == GIGABEAT_S_PAD)
|
||||
#define SNAKE_QUIT BUTTON_BACK
|
||||
#define SNAKE_UP BUTTON_UP
|
||||
#define SNAKE_DOWN BUTTON_DOWN
|
||||
#define SNAKE_PLAYPAUSE BUTTON_SELECT
|
||||
|
||||
#else
|
||||
#error "lacks keymapping"
|
||||
#endif
|
||||
|
|
|
@ -257,6 +257,18 @@ PLUGIN_HEADER
|
|||
#define SNAKE2_PLAYPAUSE BUTTON_FF
|
||||
#define SNAKE2_PLAYPAUSE_TEXT "FF"
|
||||
|
||||
#elif (CONFIG_KEYPAD == GIGABEAT_S_PAD)
|
||||
#define SNAKE2_UP BUTTON_UP
|
||||
#define SNAKE2_DOWN BUTTON_DOWN
|
||||
#define SNAKE2_QUIT BUTTON_BACK
|
||||
#define SNAKE2_LEVEL_UP BUTTON_UP
|
||||
#define SNAKE2_LEVEL_DOWN BUTTON_DOWN
|
||||
#define SNAKE2_MAZE_NEXT BUTTON_RIGHT
|
||||
#define SNAKE2_MAZE_LAST BUTTON_LEFT
|
||||
#define SNAKE2_SELECT_TYPE BUTTON_MENU
|
||||
#define SNAKE2_PLAYPAUSE BUTTON_SELECT
|
||||
#define SNAKE2_PLAYPAUSE_TEXT "Select"
|
||||
|
||||
#else
|
||||
#error "lacks keymapping"
|
||||
#endif
|
||||
|
|
|
@ -53,6 +53,8 @@ PLUGIN_HEADER
|
|||
#define SNOW_QUIT BUTTON_POWER
|
||||
#elif CONFIG_KEYPAD == MROBE500_PAD
|
||||
#define SNOW_QUIT BUTTON_POWER
|
||||
#elif CONFIG_KEYPAD == GIGABEAT_S_PAD
|
||||
#define SNOW_QUIT BUTTON_BACK
|
||||
#else
|
||||
#define SNOW_QUIT BUTTON_OFF
|
||||
#if (CONFIG_KEYPAD == IRIVER_H100_PAD) || (CONFIG_KEYPAD == IRIVER_H300_PAD)
|
||||
|
|
|
@ -217,6 +217,19 @@ extern const fb_data sokoban_tiles[];
|
|||
#define BUTTON_SAVE BUTTON_SELECT
|
||||
#define BUTTON_SAVE_NAME "SELECT"
|
||||
|
||||
#elif CONFIG_KEYPAD == GIGABEAT_S_PAD
|
||||
#define SOKOBAN_UP BUTTON_UP
|
||||
#define SOKOBAN_DOWN BUTTON_DOWN
|
||||
#define SOKOBAN_MENU BUTTON_MENU
|
||||
#define SOKOBAN_UNDO BUTTON_VOL_UP
|
||||
#define SOKOBAN_REDO BUTTON_VOL_DOWN
|
||||
#define SOKOBAN_LEVEL_DOWN BUTTON_PREV
|
||||
#define SOKOBAN_LEVEL_REPEAT BUTTON_PLAY
|
||||
#define SOKOBAN_LEVEL_UP BUTTON_NEXT
|
||||
#define SOKOBAN_PAUSE BUTTON_SELECT
|
||||
#define BUTTON_SAVE BUTTON_SELECT
|
||||
#define BUTTON_SAVE_NAME "SELECT"
|
||||
|
||||
#endif
|
||||
|
||||
#define SOKOBAN_FONT FONT_SYSFIXED
|
||||
|
|
|
@ -239,6 +239,24 @@ static struct plugin_api* rb;
|
|||
# define HK_CUR2STACK "REW"
|
||||
# define HK_REM2STACK "RIGHT.."
|
||||
|
||||
#elif (CONFIG_KEYPAD == GIGABEAT_S_PAD)
|
||||
# define SOL_QUIT BUTTON_BACK
|
||||
# define SOL_UP BUTTON_UP
|
||||
# define SOL_DOWN BUTTON_DOWN
|
||||
# define SOL_LEFT BUTTON_LEFT
|
||||
# define SOL_RIGHT BUTTON_RIGHT
|
||||
# define SOL_MOVE_PRE BUTTON_SELECT
|
||||
# define SOL_MOVE (BUTTON_SELECT | BUTTON_REL)
|
||||
# define SOL_DRAW BUTTON_MENU
|
||||
# define SOL_REM2CUR (BUTTON_LEFT | BUTTON_SELECT)
|
||||
# define SOL_CUR2STACK (BUTTON_SELECT | BUTTON_REPEAT)
|
||||
# define SOL_REM2STACK (BUTTON_RIGHT | BUTTON_SELECT)
|
||||
# define HK_MOVE "SELECT"
|
||||
# define HK_DRAW "MENU"
|
||||
# define HK_REM2CUR "SELECT+LEFT"
|
||||
# define HK_CUR2STACK "SELECT.."
|
||||
# define HK_REM2STACK "SELECT+RIGHT"
|
||||
|
||||
#else
|
||||
# error "Unknown keypad"
|
||||
#endif
|
||||
|
|
|
@ -161,6 +161,19 @@ static struct plugin_api* rb; /* global api struct pointer */
|
|||
#define AST_FIRE BUTTON_REW
|
||||
#define AST_FIRE_REP BUTTON_REW | BUTTON_REPEAT
|
||||
|
||||
#elif (CONFIG_KEYPAD == GIGABEAT_S_PAD)
|
||||
#define AST_PAUSE BUTTON_PLAY
|
||||
#define AST_QUIT BUTTON_BACK
|
||||
#define AST_THRUST_REP BUTTON_UP | BUTTON_REPEAT
|
||||
#define AST_THRUST BUTTON_UP
|
||||
#define AST_HYPERSPACE BUTTON_DOWN
|
||||
#define AST_LEFT BUTTON_LEFT
|
||||
#define AST_LEFT_REP BUTTON_LEFT | BUTTON_REPEAT
|
||||
#define AST_RIGHT BUTTON_RIGHT
|
||||
#define AST_RIGHT_REP (BUTTON_RIGHT | BUTTON_REPEAT)
|
||||
#define AST_FIRE BUTTON_SELECT
|
||||
#define AST_FIRE_REP BUTTON_SELECT | BUTTON_REPEAT
|
||||
|
||||
#endif
|
||||
|
||||
#define ABS(x) ((x)>0?(x):-(x))
|
||||
|
|
|
@ -168,6 +168,17 @@ PLUGIN_HEADER
|
|||
#define STAR_LEVEL_REPEAT (BUTTON_PLAY | BUTTON_RIGHT)
|
||||
#define STAR_MENU_RUN BUTTON_FF
|
||||
|
||||
#elif (CONFIG_KEYPAD == GIGABEAT_S_PAD)
|
||||
|
||||
#define STAR_QUIT BUTTON_BACK
|
||||
#define STAR_UP BUTTON_UP
|
||||
#define STAR_DOWN BUTTON_DOWN
|
||||
#define STAR_TOGGLE_CONTROL BUTTON_SELECT
|
||||
#define STAR_LEVEL_UP BUTTON_VOL_UP
|
||||
#define STAR_LEVEL_DOWN BUTTON_VOL_DOWN
|
||||
#define STAR_LEVEL_REPEAT BUTTON_MENU
|
||||
#define STAR_MENU_RUN BUTTON_SELECT
|
||||
|
||||
#endif
|
||||
|
||||
/* function returns because of USB? */
|
||||
|
|
|
@ -65,6 +65,13 @@ static struct plugin_api* rb; /* global api struct pointer */
|
|||
#define STARFIELD_INCREASE_NB_STARS BUTTON_RIGHT
|
||||
#define STARFIELD_DECREASE_NB_STARS BUTTON_LEFT
|
||||
#define STARFIELD_TOGGLE_COLOR BUTTON_SELECT
|
||||
#elif (CONFIG_KEYPAD == GIGABEAT_S_PAD)
|
||||
#define STARFIELD_QUIT BUTTON_BACK
|
||||
#define STARFIELD_INCREASE_ZMOVE BUTTON_UP
|
||||
#define STARFIELD_DECREASE_ZMOVE BUTTON_DOWN
|
||||
#define STARFIELD_INCREASE_NB_STARS BUTTON_RIGHT
|
||||
#define STARFIELD_DECREASE_NB_STARS BUTTON_LEFT
|
||||
#define STARFIELD_TOGGLE_COLOR BUTTON_SELECT
|
||||
|
||||
#else
|
||||
#define STARFIELD_QUIT BUTTON_OFF
|
||||
|
|
|
@ -62,6 +62,9 @@ static bool abort;
|
|||
|
||||
#elif CONFIG_KEYPAD == MROBE500_PAD
|
||||
#define STATS_STOP BUTTON_POWER
|
||||
|
||||
#elif CONFIG_KEYPAD == GIGABEAT_S_PAD
|
||||
#define STATS_STOP BUTTON_BACK
|
||||
#endif
|
||||
|
||||
/* TODO: Better get the exts from the filetypes var in tree.c */
|
||||
|
|
|
@ -122,6 +122,13 @@ PLUGIN_HEADER
|
|||
#define STOPWATCH_LAP_TIMER BUTTON_RC_PLAY
|
||||
#define STOPWATCH_SCROLL_UP BUTTON_RIGHT
|
||||
#define STOPWATCH_SCROLL_DOWN BUTTON_LEFT
|
||||
#elif CONFIG_KEYPAD == GIGABEAT_S_PAD
|
||||
#define STOPWATCH_QUIT BUTTON_BACK
|
||||
#define STOPWATCH_START_STOP BUTTON_PLAY
|
||||
#define STOPWATCH_RESET_TIMER BUTTON_MENU
|
||||
#define STOPWATCH_LAP_TIMER BUTTON_SELECT
|
||||
#define STOPWATCH_SCROLL_UP BUTTON_UP
|
||||
#define STOPWATCH_SCROLL_DOWN BUTTON_DOWN
|
||||
#endif
|
||||
|
||||
static struct plugin_api* rb;
|
||||
|
|
|
@ -119,6 +119,14 @@ char buf[255];
|
|||
#define SUPERDOM_RIGHT BUTTON_RIGHT
|
||||
#define SUPERDOM_CANCEL BUTTON_POWER
|
||||
|
||||
#elif CONFIG_KEYPAD == GIGABEAT_S_PAD
|
||||
#define SUPERDOM_OK BUTTON_SELECT
|
||||
#define SUPERDOM_UP BUTTON_UP
|
||||
#define SUPERDOM_DOWN BUTTON_DOWN
|
||||
#define SUPERDOM_LEFT BUTTON_LEFT
|
||||
#define SUPERDOM_RIGHT BUTTON_RIGHT
|
||||
#define SUPERDOM_CANCEL BUTTON_BACK
|
||||
|
||||
#endif
|
||||
|
||||
#define SUPERDOM_QUIT 23
|
||||
|
|
|
@ -214,6 +214,15 @@ PLUGIN_HEADER
|
|||
#define VIEWER_MENU BUTTON_RC_HEART
|
||||
#define VIEWER_AUTOSCROLL BUTTON_RC_MODE
|
||||
|
||||
#elif CONFIG_KEYPAD == GIGABEAT_S_PAD
|
||||
#define VIEWER_QUIT BUTTON_BACK
|
||||
#define VIEWER_PAGE_UP BUTTON_VOL_UP
|
||||
#define VIEWER_PAGE_DOWN BUTTON_VOL_DOWN
|
||||
#define VIEWER_SCREEN_LEFT BUTTON_LEFT
|
||||
#define VIEWER_SCREEN_RIGHT BUTTON_RIGHT
|
||||
#define VIEWER_MENU BUTTON_MENU
|
||||
#define VIEWER_AUTOSCROLL BUTTON_PLAY
|
||||
|
||||
#endif
|
||||
|
||||
/* stuff for the bookmarking */
|
||||
|
|
|
@ -121,6 +121,15 @@ PLUGIN_HEADER
|
|||
#define VUMETER_UP BUTTON_SCROLL_UP
|
||||
#define VUMETER_DOWN BUTTON_SCROLL_DOWN
|
||||
|
||||
#elif (CONFIG_KEYPAD == GIGABEAT_S_PAD)
|
||||
#define VUMETER_QUIT BUTTON_BACK
|
||||
#define VUMETER_HELP BUTTON_NEXT
|
||||
#define VUMETER_MENU BUTTON_MENU
|
||||
#define VUMETER_MENU_EXIT BUTTON_MENU
|
||||
#define VUMETER_MENU_EXIT2 BUTTON_PLAY
|
||||
#define VUMETER_UP BUTTON_UP
|
||||
#define VUMETER_DOWN BUTTON_DOWN
|
||||
|
||||
#endif
|
||||
|
||||
const struct plugin_api* rb;
|
||||
|
|
|
@ -176,6 +176,19 @@ PLUGIN_HEADER
|
|||
#define PLAYERS_TEXT "Up/Down"
|
||||
#define WORMS_TEXT "Left/Right"
|
||||
|
||||
#elif (CONFIG_KEYPAD == GIGABEAT_S_PAD)
|
||||
|
||||
#define BTN_DIR_UP BUTTON_UP
|
||||
#define BTN_DIR_DOWN BUTTON_DOWN
|
||||
#define BTN_DIR_LEFT BUTTON_LEFT
|
||||
#define BTN_DIR_RIGHT BUTTON_RIGHT
|
||||
#define BTN_STARTPAUSE BUTTON_SELECT
|
||||
#define BTN_QUIT BUTTON_BACK
|
||||
#define BTN_STOPRESET BUTTON_MENU
|
||||
|
||||
#define PLAYERS_TEXT "Up/Down"
|
||||
#define WORMS_TEXT "Left/Right"
|
||||
|
||||
#endif
|
||||
|
||||
#if (LCD_WIDTH == 112) && (LCD_HEIGHT == 64)
|
||||
|
|
|
@ -112,6 +112,15 @@ PLUGIN_HEADER
|
|||
#define UP BUTTON_UP
|
||||
#define PAUSE BUTTON_MENU
|
||||
|
||||
#elif (CONFIG_KEYPAD == GIGABEAT_S_PAD)
|
||||
|
||||
#define QUIT BUTTON_BACK
|
||||
#define LEFT BUTTON_LEFT
|
||||
#define RIGHT BUTTON_RIGHT
|
||||
#define UP BUTTON_UP
|
||||
#define DOWN BUTTON_DOWN
|
||||
#define PAUSE BUTTON_PLAY
|
||||
|
||||
#else
|
||||
#error Unsupported keypad
|
||||
#endif
|
||||
|
|
2
tools/configure
vendored
2
tools/configure
vendored
|
@ -1228,7 +1228,7 @@ EOF
|
|||
bmp2rb_native="$rootdir/tools/bmp2rb -f 4"
|
||||
output="rockbox.gigabeat"
|
||||
appextra="recorder:gui"
|
||||
plugins=""
|
||||
plugins="yes"
|
||||
swcodec="yes"
|
||||
toolset="$gigabeatbitmaptools mknkboot"
|
||||
boottool="$rootdir/tools/scramble -gigabeats"
|
||||
|
|
Loading…
Reference in a new issue