Enable plugins on the Onda VX747

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@20647 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Maurus Cuelenaere 2009-04-07 23:41:44 +00:00
parent 8b13d87ec3
commit fef405c328
62 changed files with 258 additions and 15 deletions

View file

@ -175,6 +175,11 @@ PLUGIN_HEADER
#define BATTERY_ON_TXT "MENU - start" #define BATTERY_ON_TXT "MENU - start"
#define BATTERY_OFF_TXT "POWER" #define BATTERY_OFF_TXT "POWER"
#elif CONFIG_KEYPAD == ONDAVX747_PAD
#define BATTERY_OFF BUTTON_POWER
#define BATTERY_OFF_TXT "POWER"
#else #else
#error No keymap defined! #error No keymap defined!
#endif #endif

View file

@ -20,7 +20,7 @@ bubbles_bubble.138x110x1.bmp
((LCD_WIDTH == 176) && (LCD_HEIGHT == 220)) ((LCD_WIDTH == 176) && (LCD_HEIGHT == 220))
bubbles_bubble.220x176x1.bmp bubbles_bubble.220x176x1.bmp
#elif ((LCD_WIDTH == 320) && (LCD_HEIGHT == 240)) || \ #elif ((LCD_WIDTH == 320) && (LCD_HEIGHT == 240)) || \
((LCD_WIDTH == 240) && (LCD_HEIGHT == 320)) ((LCD_WIDTH == 240) && (LCD_HEIGHT >= 320))
bubbles_bubble.320x240x1.bmp bubbles_bubble.320x240x1.bmp
#endif #endif

View file

@ -17,7 +17,7 @@ brickmania_bricks.220x176x16.bmp
brickmania_pads.220x176x16.bmp brickmania_pads.220x176x16.bmp
brickmania_break.220x176x16.bmp brickmania_break.220x176x16.bmp
brickmania_powerups.220x176x16.bmp brickmania_powerups.220x176x16.bmp
#if LCD_HEIGHT == 320 #if LCD_HEIGHT >= 320
brickmania_menu_bg.240x320x16.bmp brickmania_menu_bg.240x320x16.bmp
#elif LCD_HEIGHT == 176 #elif LCD_HEIGHT == 176
brickmania_menu_bg.220x176x16.bmp brickmania_menu_bg.220x176x16.bmp
@ -325,7 +325,7 @@ jewels.160x128x16.bmp
jewels.220x176x16.bmp jewels.220x176x16.bmp
#elif (LCD_WIDTH == 176) && (LCD_HEIGHT == 220) #elif (LCD_WIDTH == 176) && (LCD_HEIGHT == 220)
jewels.220x176x16.bmp jewels.220x176x16.bmp
#elif (LCD_WIDTH == 240) && (LCD_HEIGHT == 320) #elif (LCD_WIDTH == 240) && (LCD_HEIGHT >= 320)
jewels.320x240x16.bmp jewels.320x240x16.bmp
#elif (LCD_WIDTH == 320) && (LCD_HEIGHT == 240) #elif (LCD_WIDTH == 320) && (LCD_HEIGHT == 240)
jewels.320x240x16.bmp jewels.320x240x16.bmp
@ -419,7 +419,7 @@ pegbox_pieces.9x7x1.bmp
#if LCD_DEPTH == 16 /* colour versions*/ #if LCD_DEPTH == 16 /* colour versions*/
#if (LCD_WIDTH >= 320) && (LCD_HEIGHT >= 240) #if (LCD_WIDTH >= 320) && (LCD_HEIGHT >= 240)
rockblox_background.320x240x16.bmp rockblox_background.320x240x16.bmp
#elif (LCD_WIDTH == 240) && (LCD_HEIGHT == 320) #elif (LCD_WIDTH == 240) && (LCD_HEIGHT >= 320)
rockblox_background.240x320x16.bmp rockblox_background.240x320x16.bmp
#elif (LCD_WIDTH == 220) && (LCD_HEIGHT == 176) #elif (LCD_WIDTH == 220) && (LCD_HEIGHT == 176)
rockblox_background.220x176x16.bmp rockblox_background.220x176x16.bmp
@ -678,7 +678,7 @@ superdom_boarditems.220x176x16.bmp
superdom_boarditems.176x132x16.bmp superdom_boarditems.176x132x16.bmp
#elif (LCD_WIDTH == 320 && LCD_HEIGHT == 240) #elif (LCD_WIDTH == 320 && LCD_HEIGHT == 240)
superdom_boarditems.320x240x16.bmp superdom_boarditems.320x240x16.bmp
#elif (LCD_WIDTH == 240 && LCD_HEIGHT == 320) #elif (LCD_WIDTH == 240 && LCD_HEIGHT >= 320)
superdom_boarditems.240x320x16.bmp superdom_boarditems.240x320x16.bmp
#endif #endif
#endif #endif

View file

@ -333,6 +333,11 @@ PLUGIN_HEADER
#define BJACK_RIGHT BUTTON_RIGHT #define BJACK_RIGHT BUTTON_RIGHT
#define BJACK_LEFT BUTTON_LEFT #define BJACK_LEFT BUTTON_LEFT
#elif CONFIG_KEYPAD == ONDAVX747_PAD
#define BJACK_QUIT BUTTON_POWER
#define BJACK_DOUBLEDOWN BUTTON_VOL_DOWN
#define BJACK_SCORES BUTTON_MENU
#else #else
#error No keymap defined! #error No keymap defined!
#endif #endif

View file

@ -163,6 +163,10 @@ PLUGIN_HEADER
#define BOUNCE_QUIT BUTTON_POWER #define BOUNCE_QUIT BUTTON_POWER
#define BOUNCE_MODE BUTTON_MENU #define BOUNCE_MODE BUTTON_MENU
#elif (CONFIG_KEYPAD == ONDAVX747_PAD)
#define BOUNCE_QUIT BUTTON_POWER
#define BOUNCE_MODE BUTTON_MENU
#else #else
#error No keymap defined! #error No keymap defined!
#endif #endif

View file

@ -190,6 +190,12 @@ CONFIG_KEYPAD == SANSA_M200_PAD
#define UP BUTTON_UP #define UP BUTTON_UP
#define DOWN BUTTON_DOWN #define DOWN BUTTON_DOWN
#elif CONFIG_KEYPAD == ONDAVX747_PAD
#define QUIT BUTTON_POWER
#define LEFT BUTTON_VOL_DOWN
#define RIGHT BUTTON_VOL_UP
#define SELECT BUTTON_MENU
#else #else
#error No keymap defined! #error No keymap defined!
#endif #endif
@ -262,7 +268,7 @@ enum menu_items {
#include "pluginbitmaps/brickmania_break.h" #include "pluginbitmaps/brickmania_break.h"
#endif #endif
#if (LCD_WIDTH == 320) && (LCD_HEIGHT == 240) #if ((LCD_WIDTH == 320) || (LCD_WIDTH == 400)) && (LCD_HEIGHT == 240)
/* The time (in ms) for one iteration through the game loop - decrease this /* The time (in ms) for one iteration through the game loop - decrease this
to speed up the game - note that current_tick is (currently) only accurate to speed up the game - note that current_tick is (currently) only accurate

View file

@ -120,8 +120,8 @@ PLUGIN_HEADER
#define ROW_INDENT 11 #define ROW_INDENT 11
#define MAX_FPS 40 #define MAX_FPS 40
/* 22x22 bubbles (Gigabeat) */ /* 22x22 bubbles (Gigabeat, Onda VX747) */
#elif (LCD_HEIGHT == 320) && (LCD_WIDTH == 240) #elif ((LCD_HEIGHT == 320) || (LCD_HEIGHT == 400)) && (LCD_WIDTH == 240)
#define XOFS 64 #define XOFS 64
#define ROW_HEIGHT 18 #define ROW_HEIGHT 18
#define ROW_INDENT 11 #define ROW_INDENT 11

View file

@ -324,6 +324,11 @@ PLUGIN_HEADER
#define CALCULATOR_CALC BUTTON_MENU #define CALCULATOR_CALC BUTTON_MENU
#define CALCULATOR_CLEAR BUTTON_VIEW #define CALCULATOR_CLEAR BUTTON_VIEW
#elif (CONFIG_KEYPAD == ONDAVX747_PAD)
#define CALCULATOR_QUIT BUTTON_POWER
#define CALCULATOR_CLEAR BUTTON_MENU
#else #else
#error No keymap defined! #error No keymap defined!
#endif #endif

View file

@ -173,6 +173,16 @@ CONFIG_KEYPAD == SANSA_M200_PAD
#define CALENDAR_NEXT_MONTH BUTTON_VOL_DOWN #define CALENDAR_NEXT_MONTH BUTTON_VOL_DOWN
#define CALENDAR_PREV_MONTH BUTTON_VOL_UP #define CALENDAR_PREV_MONTH BUTTON_VOL_UP
#elif (CONFIG_KEYPAD == ONDAVX747_PAD)
#define CALENDAR_QUIT BUTTON_POWER
#define CALENDAR_SELECT BUTTON_MENU
#define CALENDAR_NEXT_WEEK BUTTON_VOL_DOWN
#define CALENDAR_PREV_WEEK BUTTON_VOL_UP
#define CALENDAR_NEXT_DAY BUTTON_RIGHT
#define CALENDAR_PREV_DAY BUTTON_LEFT
#define CALENDAR_NEXT_MONTH BUTTON_BOTTOMRIGHT
#define CALENDAR_PREV_MONTH BUTTON_BOTTOMLEFT
#else #else
#error "No keypad setting." #error "No keypad setting."
#endif #endif

View file

@ -341,6 +341,11 @@
#define CB_SCROLL_LEFT (BUTTON_LEFT|BUTTON_REPEAT) #define CB_SCROLL_LEFT (BUTTON_LEFT|BUTTON_REPEAT)
#define CB_SCROLL_RIGHT (BUTTON_RIGHT|BUTTON_REPEAT) #define CB_SCROLL_RIGHT (BUTTON_RIGHT|BUTTON_REPEAT)
#elif CONFIG_KEYPAD == ONDAVX747_PAD
#define CB_LEVEL BUTTON_VOL_UP
#define CB_RESTART BUTTON_VOL_DOWN
#define CB_MENU (BUTTON_MENU|BUTTON_REL)
#else #else
#error No keymap defined! #error No keymap defined!
#endif #endif

View file

@ -224,6 +224,14 @@ PLUGIN_HEADER
#define CHC_SETTINGS_OK BUTTON_SELECT #define CHC_SETTINGS_OK BUTTON_SELECT
#define CHC_SETTINGS_CANCEL BUTTON_POWER #define CHC_SETTINGS_CANCEL BUTTON_POWER
#elif CONFIG_KEYPAD == ONDAVX747_PAD
#define CHC_QUIT BUTTON_POWER
#define CHC_RESET (BUTTON_VOL_UP|BUTTON_VOL_DOWN)
#define CHC_MENU BUTTON_MENU
#define CHC_SETTINGS_INC BUTTON_VOL_UP
#define CHC_SETTINGS_DEC BUTTON_VOL_DOWN
#define CHC_SETTINGS_CANCEL BUTTON_POWER
#else #else
#error No keymap defined! #error No keymap defined!
#endif #endif

View file

@ -1102,6 +1102,9 @@ CONFIG_KEYPAD == SANSA_M200_PAD
#define CHIP8_KEY8 BUTTON_DOWN #define CHIP8_KEY8 BUTTON_DOWN
#define CHIP8_KEY9 BUTTON_VIEW #define CHIP8_KEY9 BUTTON_VIEW
#elif (CONFIG_KEYPAD == ONDAVX747_PAD)
#define CHIP8_OFF BUTTON_POWER
#else #else
#error No keymap defined! #error No keymap defined!
#endif #endif

View file

@ -130,6 +130,9 @@ Still To do:
#define ACTION2 BUTTON_SELECT #define ACTION2 BUTTON_SELECT
#define ACTIONTEXT "MENU" #define ACTIONTEXT "MENU"
#elif CONFIG_KEYPAD == ONDAVX747_PAD
#define QUIT BUTTON_POWER
#else #else
#error No keymap defined! #error No keymap defined!
#endif #endif

View file

@ -237,6 +237,10 @@ PLUGIN_HEADER
#define CUBE_MODE BUTTON_MENU #define CUBE_MODE BUTTON_MENU
#define CUBE_PAUSE BUTTON_SELECT #define CUBE_PAUSE BUTTON_SELECT
#define CUBE_HIGHSPEED BUTTON_VIEW #define CUBE_HIGHSPEED BUTTON_VIEW
#elif CONFIG_KEYPAD == ONDAVX747_PAD
#define CUBE_QUIT BUTTON_POWER
#else #else
#error No keymap defined! #error No keymap defined!
#endif #endif

View file

@ -141,6 +141,8 @@ long reverse (long N) {
#define LP_QUIT BUTTON_BACK #define LP_QUIT BUTTON_BACK
#elif CONFIG_KEYPAD == PHILIPS_HDD1630_PAD #elif CONFIG_KEYPAD == PHILIPS_HDD1630_PAD
#define LP_QUIT BUTTON_POWER #define LP_QUIT BUTTON_POWER
#elif CONFIG_KEYPAD == ONDAVX747_PAD
#define LP_QUIT BUTTON_POWER
#else #else
#define LP_QUIT BUTTON_OFF #define LP_QUIT BUTTON_OFF
#endif #endif

View file

@ -315,6 +315,11 @@ void I_ShutdownGraphics(void)
#define DOOMBUTTON_ENTER BUTTON_VIEW #define DOOMBUTTON_ENTER BUTTON_VIEW
#define DOOMBUTTON_WEAPON BUTTON_VOL_DOWN #define DOOMBUTTON_WEAPON BUTTON_VOL_DOWN
#define DOOMBUTTON_MAP BUTTON_VOL_UP #define DOOMBUTTON_MAP BUTTON_VOL_UP
#elif CONFIG_KEYPAD == ONDAVX747_PAD
#define DOOMBUTTON_ESC BUTTON_POWER
#define DOOMBUTTON_SHOOT BUTTON_VOL_UP
#define DOOMBUTTON_WEAPON BUTTON_VOL_DOWN
#define DOOMBUTTON_MAP BUTTON_MENU
#else #else
#error Keymap not defined! #error Keymap not defined!
#endif #endif

View file

@ -100,6 +100,9 @@ PLUGIN_HEADER
#define BTN_MENU BUTTON_MENU #define BTN_MENU BUTTON_MENU
#define BTN_FIRE BUTTON_SELECT #define BTN_FIRE BUTTON_SELECT
#elif (CONFIG_KEYPAD == ONDAVX747_PAD)
#define BTN_MENU (BUTTON_MENU|BUTTON_REL)
#else #else
#error No keymap defined! #error No keymap defined!
#endif #endif

View file

@ -276,6 +276,10 @@ PLUGIN_HEADER
#define FLIPIT_STEP_BY_STEP BUTTON_PLAYLIST #define FLIPIT_STEP_BY_STEP BUTTON_PLAYLIST
#define FLIPIT_TOGGLE BUTTON_SELECT #define FLIPIT_TOGGLE BUTTON_SELECT
#elif CONFIG_KEYPAD == ONDAVX747_PAD
#define FLIPIT_QUIT BUTTON_POWER
#else #else
#error No keymap defined! #error No keymap defined!
#endif #endif

View file

@ -134,6 +134,10 @@ PLUGIN_HEADER
#define RIGHT BUTTON_RIGHT #define RIGHT BUTTON_RIGHT
#define FIRE BUTTON_SELECT #define FIRE BUTTON_SELECT
#elif CONFIG_KEYPAD == ONDAVX747_PAD
#define QUIT BUTTON_POWER
#else #else
#error INVADROX: Unsupported keypad #error INVADROX: Unsupported keypad
#endif #endif
@ -370,7 +374,7 @@ PLUGIN_HEADER
#define MAX_Y 18 #define MAX_Y 18
#elif (LCD_WIDTH == 240) && (LCD_HEIGHT == 320) #elif (LCD_WIDTH == 240) && ((LCD_HEIGHT == 320) || (LCD_HEIGHT == 400))
/* Gigabeat: 240x320x16 /* Gigabeat: 240x320x16
* ====================== * ======================

View file

@ -182,6 +182,9 @@ CONFIG_KEYPAD == SANSA_M200_PAD
#define JEWELS_SELECT BUTTON_SELECT #define JEWELS_SELECT BUTTON_SELECT
#define JEWELS_CANCEL BUTTON_POWER #define JEWELS_CANCEL BUTTON_POWER
#elif CONFIG_KEYPAD == ONDAVX747_PAD
#define JEWELS_CANCEL BUTTON_POWER
#else #else
#error No keymap defined! #error No keymap defined!
#endif #endif
@ -207,9 +210,10 @@ CONFIG_KEYPAD == SANSA_M200_PAD
#endif #endif
#endif #endif
/* use 30x30 tiles (iPod Video, Gigabeat) */ /* use 30x30 tiles (iPod Video, Gigabeat, Onda VX747) */
#if (LCD_HEIGHT == 240) && (LCD_WIDTH == 320) || \ #if (LCD_HEIGHT == 240) && (LCD_WIDTH == 320) || \
((LCD_HEIGHT == 320) && (LCD_WIDTH == 240)) ((LCD_HEIGHT == 320) && (LCD_WIDTH == 240)) || \
((LCD_HEIGHT == 400) && (LCD_WIDTH == 240))
#define TILE_WIDTH 30 #define TILE_WIDTH 30
#define TILE_HEIGHT 30 #define TILE_HEIGHT 30
#define YOFS 0 #define YOFS 0
@ -1658,6 +1662,8 @@ static int jewels_main(struct game_context* bj) {
rb->lcd_puts(0, 9, "SELECT/PLAY to select"); rb->lcd_puts(0, 9, "SELECT/PLAY to select");
rb->lcd_puts(0, 10, "Long SELECT to show menu"); rb->lcd_puts(0, 10, "Long SELECT to show menu");
rb->lcd_puts(0, 11, "POWER to cancel"); rb->lcd_puts(0, 11, "POWER to cancel");
#elif CONFIG_KEYPAD == ONDAVX747_PAD
rb->lcd_puts(0, 11, "POWER to cancel");
#else #else
#warning: missing help text. #warning: missing help text.
#endif #endif

View file

@ -285,6 +285,8 @@
#define JPEG_NEXT BUTTON_VIEW #define JPEG_NEXT BUTTON_VIEW
#define JPEG_PREVIOUS BUTTON_PLAYLIST #define JPEG_PREVIOUS BUTTON_PLAYLIST
#elif CONFIG_KEYPAD == ONDAVX747_PAD
#else #else
#error No keymap defined! #error No keymap defined!
#endif #endif

View file

@ -82,6 +82,10 @@ PLUGIN_HEADER
# define LAMP_LEFT BUTTON_LEFT # define LAMP_LEFT BUTTON_LEFT
# define LAMP_RIGHT BUTTON_RIGHT # define LAMP_RIGHT BUTTON_RIGHT
#elif CONFIG_KEYPAD == ONDAVX747_PAD
# define LAMP_LEFT BUTTON_VOL_DOWN
# define LAMP_RIGHT BUTTON_VOL_UP
#else #else
# error Missing key definitions for this keypad # error Missing key definitions for this keypad
#endif #endif

View file

@ -169,6 +169,7 @@ const struct button_mapping generic_directions[] =
{ PLA_DOWN_REPEAT, BUTTON_PLAY|BUTTON_REPEAT, BUTTON_NONE}, { PLA_DOWN_REPEAT, BUTTON_PLAY|BUTTON_REPEAT, BUTTON_NONE},
{ PLA_LEFT_REPEAT, BUTTON_LEFT|BUTTON_REPEAT, BUTTON_NONE}, { PLA_LEFT_REPEAT, BUTTON_LEFT|BUTTON_REPEAT, BUTTON_NONE},
{ PLA_RIGHT_REPEAT, BUTTON_RIGHT|BUTTON_REPEAT, BUTTON_NONE}, { PLA_RIGHT_REPEAT, BUTTON_RIGHT|BUTTON_REPEAT, BUTTON_NONE},
#elif (CONFIG_KEYPAD == ONDAVX747_PAD) /* Touchscreen target */
#else #else
#error pluginlib_actions: Unsupported keypad #error pluginlib_actions: Unsupported keypad
#endif #endif
@ -290,6 +291,7 @@ const struct button_mapping generic_left_right_fire[] =
{ PLA_RIGHT_REPEAT, BUTTON_RIGHT|BUTTON_REPEAT, BUTTON_NONE}, { PLA_RIGHT_REPEAT, BUTTON_RIGHT|BUTTON_REPEAT, BUTTON_NONE},
{ PLA_FIRE, BUTTON_SELECT, BUTTON_NONE}, { PLA_FIRE, BUTTON_SELECT, BUTTON_NONE},
{ PLA_FIRE_REPEAT, BUTTON_SELECT|BUTTON_REPEAT, BUTTON_NONE}, { PLA_FIRE_REPEAT, BUTTON_SELECT|BUTTON_REPEAT, BUTTON_NONE},
#elif (CONFIG_KEYPAD == ONDAVX747_PAD) /* Touchscreen target */
#else #else
#error pluginlib_actions: Unsupported keypad #error pluginlib_actions: Unsupported keypad
#endif #endif
@ -440,6 +442,12 @@ const struct button_mapping generic_actions[] =
{PLA_MENU, BUTTON_MENU, BUTTON_NONE}, {PLA_MENU, BUTTON_MENU, BUTTON_NONE},
{PLA_FIRE, BUTTON_SELECT, BUTTON_NONE}, {PLA_FIRE, BUTTON_SELECT, BUTTON_NONE},
{PLA_FIRE_REPEAT, BUTTON_SELECT|BUTTON_REPEAT, BUTTON_NONE}, {PLA_FIRE_REPEAT, BUTTON_SELECT|BUTTON_REPEAT, BUTTON_NONE},
#elif (CONFIG_KEYPAD == ONDAVX747_PAD)
{PLA_QUIT, BUTTON_POWER, BUTTON_NONE},
{PLA_START, BUTTON_VOL_DOWN, BUTTON_NONE},
{PLA_MENU, BUTTON_MENU, BUTTON_NONE},
{PLA_FIRE, BUTTON_VOL_UP, BUTTON_NONE},
{PLA_FIRE_REPEAT, BUTTON_VOL_UP|BUTTON_REPEAT, BUTTON_NONE},
#else #else
#error pluginlib_actions: Unsupported keypad #error pluginlib_actions: Unsupported keypad
#endif #endif
@ -515,6 +523,11 @@ const struct button_mapping generic_increase_decrease[] =
{PLA_DEC, BUTTON_VOLDOWN, BUTTON_NONE}, {PLA_DEC, BUTTON_VOLDOWN, BUTTON_NONE},
{PLA_INC_REPEAT, BUTTON_VOLUP|BUTTON_REPEAT, BUTTON_NONE}, {PLA_INC_REPEAT, BUTTON_VOLUP|BUTTON_REPEAT, BUTTON_NONE},
{PLA_DEC_REPEAT, BUTTON_VOLDOWN|BUTTON_REPEAT, BUTTON_NONE}, {PLA_DEC_REPEAT, BUTTON_VOLDOWN|BUTTON_REPEAT, BUTTON_NONE},
#elif CONFIG_KEYPAD == ONDAVX747_PAD
{PLA_INC, BUTTON_VOL_UP, BUTTON_NONE},
{PLA_DEC, BUTTON_VOL_DOWN, BUTTON_NONE},
{PLA_INC_REPEAT, BUTTON_VOL_UP|BUTTON_REPEAT, BUTTON_NONE},
{PLA_DEC_REPEAT, BUTTON_VOL_DOWN|BUTTON_REPEAT, BUTTON_NONE},
#else #else
#error pluginlib_actions: Unsupported keypad #error pluginlib_actions: Unsupported keypad
#endif #endif

View file

@ -165,6 +165,9 @@ const unsigned char rockbox16x7[] = {
#define LP_DEC_Y BUTTON_DOWN #define LP_DEC_Y BUTTON_DOWN
#define LP_INC_Y BUTTON_UP #define LP_INC_Y BUTTON_UP
#elif CONFIG_KEYPAD == ONDAVX747_PAD
#define LP_QUIT BUTTON_POWER
#else #else
#define LP_QUIT BUTTON_OFF #define LP_QUIT BUTTON_OFF
#define LP_DEC_X BUTTON_LEFT #define LP_DEC_X BUTTON_LEFT

View file

@ -283,6 +283,9 @@ PLUGIN_HEADER
#define MANDELBROT_MAXITER_DEC BUTTON_VOL_DOWN #define MANDELBROT_MAXITER_DEC BUTTON_VOL_DOWN
#define MANDELBROT_RESET BUTTON_MENU #define MANDELBROT_RESET BUTTON_MENU
#elif CONFIG_KEYPAD == ONDAVX747_PAD
#define MANDELBROT_QUIT BUTTON_POWER
#else #else
#error No keymap defined! #error No keymap defined!
#endif #endif

View file

@ -133,6 +133,9 @@ extern const fb_data matrix_normal[];
#define MATRIX_SLEEP_LESS BUTTON_DOWN #define MATRIX_SLEEP_LESS BUTTON_DOWN
#define MATRIX_PAUSE BUTTON_SELECT #define MATRIX_PAUSE BUTTON_SELECT
#elif (CONFIG_KEYPAD == ONDAVX747_PAD)
#define MATRIX_EXIT BUTTON_POWER
#else #else
#error Unsupported keypad #error Unsupported keypad
#endif #endif

View file

@ -159,6 +159,9 @@ PLUGIN_IRAM_DECLARE
#define BTN_DOWN BUTTON_DOWN #define BTN_DOWN BUTTON_DOWN
#define BTN_PLAY BUTTON_MENU #define BTN_PLAY BUTTON_MENU
#elif CONFIG_KEYPAD == ONDAVX747_PAD
#define BTN_QUIT BUTTON_POWER
#else #else
#error No keymap defined! #error No keymap defined!
#endif #endif

View file

@ -224,6 +224,9 @@ enum minesweeper_status {
# define MINESWP_DISCOVER BUTTON_SELECT # define MINESWP_DISCOVER BUTTON_SELECT
# define MINESWP_INFO BUTTON_MENU # define MINESWP_INFO BUTTON_MENU
#elif (CONFIG_KEYPAD == ONDAVX747_PAD)
# define MINESWP_QUIT BUTTON_POWER
#else #else
#error No keymap defined! #error No keymap defined!
#endif #endif

View file

@ -145,6 +145,9 @@ PLUGIN_HEADER
#define MOSAIQUE_SPEED BUTTON_VIEW #define MOSAIQUE_SPEED BUTTON_VIEW
#define MOSAIQUE_RESTART BUTTON_MENU #define MOSAIQUE_RESTART BUTTON_MENU
#elif CONFIG_KEYPAD == ONDAVX747_PAD
#define MOSAIQUE_QUIT BUTTON_POWER
#else #else
#error No keymap defined! #error No keymap defined!
#endif #endif

View file

@ -2489,6 +2489,9 @@ void get_mp3_filename(const char *wav_name)
#define MP3ENC_DONE BUTTON_POWER #define MP3ENC_DONE BUTTON_POWER
#define MP3ENC_SELECT BUTTON_SELECT #define MP3ENC_SELECT BUTTON_SELECT
#elif CONFIG_KEYPAD == ONDAVX747_PAD
#define MP3ENC_DONE BUTTON_POWER
#else #else
#error No keymap defined! #error No keymap defined!
#endif #endif

View file

@ -162,6 +162,9 @@ struct mpeg_settings settings;
#define MPEG_START_TIME_SCROLL_UP BUTTON_VOL_UP #define MPEG_START_TIME_SCROLL_UP BUTTON_VOL_UP
#define MPEG_START_TIME_EXIT BUTTON_POWER #define MPEG_START_TIME_EXIT BUTTON_POWER
#elif CONFIG_KEYPAD == ONDAVX747_PAD
#define MPEG_START_TIME_EXIT BUTTON_POWER
#else #else
#error No keymap defined! #error No keymap defined!
#endif #endif

View file

@ -268,6 +268,12 @@ CONFIG_KEYPAD == SANSA_M200_PAD
#define MPEG_RW BUTTON_LEFT #define MPEG_RW BUTTON_LEFT
#define MPEG_FF BUTTON_RIGHT #define MPEG_FF BUTTON_RIGHT
#elif CONFIG_KEYPAD == ONDAVX747_PAD
#define MPEG_MENU (BUTTON_MENU|BUTTON_REL)
//#define MPEG_STOP BUTTON_POWER
#define MPEG_VOLDOWN BUTTON_VOL_DOWN
#define MPEG_VOLUP BUTTON_VOL_UP
#else #else
#error No keymap defined! #error No keymap defined!
#endif #endif

View file

@ -243,6 +243,11 @@ PLUGIN_HEADER
#define OSCILLOSCOPE_VOL_UP BUTTON_VOL_UP #define OSCILLOSCOPE_VOL_UP BUTTON_VOL_UP
#define OSCILLOSCOPE_VOL_DOWN BUTTON_VOL_DOWN #define OSCILLOSCOPE_VOL_DOWN BUTTON_VOL_DOWN
#elif CONFIG_KEYPAD == ONDAVX747_PAD
#define OSCILLOSCOPE_QUIT BUTTON_POWER
#define OSCILLOSCOPE_VOL_UP BUTTON_VOL_UP
#define OSCILLOSCOPE_VOL_DOWN BUTTON_VOL_DOWN
#else #else
#error No keymap defined! #error No keymap defined!
#endif #endif

View file

@ -192,6 +192,10 @@
#define PACMAN_COIN BUTTON_VIEW #define PACMAN_COIN BUTTON_VIEW
#define PACMAN_MENU BUTTON_MENU #define PACMAN_MENU BUTTON_MENU
#elif CONFIG_KEYPAD == ONDAVX747_PAD
#define PACMAN_MENU (BUTTON_MENU|BUTTON_REL)
#else #else
#error Keymap not defined! #error Keymap not defined!

View file

@ -370,6 +370,11 @@ PLUGIN_HEADER
#define LVL_UP_TEXT "VOL+" #define LVL_UP_TEXT "VOL+"
#define LVL_DOWN_TEXT "VOL-" #define LVL_DOWN_TEXT "VOL-"
#elif CONFIG_KEYPAD == ONDAVX747_PAD
#define PEGBOX_QUIT BUTTON_POWER
#define QUIT_TEXT "POWER"
#else #else
#error Unsupported keymap! #error Unsupported keymap!
#endif #endif

View file

@ -123,6 +123,9 @@ static int plasma_frequency;
#define PLASMA_DECREASE_FREQUENCY BUTTON_DOWN #define PLASMA_DECREASE_FREQUENCY BUTTON_DOWN
#define PLASMA_REGEN_COLORS BUTTON_SELECT #define PLASMA_REGEN_COLORS BUTTON_SELECT
#elif (CONFIG_KEYPAD == ONDAVX747_PAD)
#define PLASMA_QUIT BUTTON_POWER
#endif #endif
#ifdef HAVE_TOUCHSCREEN #ifdef HAVE_TOUCHSCREEN

View file

@ -177,6 +177,9 @@ PLUGIN_HEADER
#define PONG_RIGHT_UP BUTTON_VOL_UP #define PONG_RIGHT_UP BUTTON_VOL_UP
#define PONG_RIGHT_DOWN BUTTON_VOL_DOWN #define PONG_RIGHT_DOWN BUTTON_VOL_DOWN
#elif (CONFIG_KEYPAD == ONDAVX747_PAD)
#define PONG_QUIT BUTTON_POWER
#else #else
#error No keymap defined! #error No keymap defined!
#endif #endif

View file

@ -177,6 +177,10 @@
#define REVERSI_BUTTON_MAKE_MOVE BUTTON_SELECT #define REVERSI_BUTTON_MAKE_MOVE BUTTON_SELECT
#define REVERSI_BUTTON_MENU BUTTON_MENU #define REVERSI_BUTTON_MENU BUTTON_MENU
#elif CONFIG_KEYPAD == ONDAVX747_PAD
#define REVERSI_QUIT BUTTON_POWER
#define REVERSI_BUTTON_MENU BUTTON_MENU
#else #else
#error No keymap defined! #error No keymap defined!
#endif #endif

View file

@ -286,6 +286,10 @@ PLUGIN_HEADER
#define ROCKBLOX_DROP BUTTON_SELECT #define ROCKBLOX_DROP BUTTON_SELECT
#define ROCKBLOX_RESTART BUTTON_MENU #define ROCKBLOX_RESTART BUTTON_MENU
#elif CONFIG_KEYPAD == ONDAVX747_PAD
#define ROCKBLOX_OFF BUTTON_POWER
#define ROCKBLOX_RESTART BUTTON_MENU
#else #else
#error No keymap defined! #error No keymap defined!
#endif #endif
@ -371,7 +375,7 @@ PLUGIN_HEADER
#define LEVEL_Y 70 #define LEVEL_Y 70
#define LINES_Y 105 #define LINES_Y 105
#elif (LCD_WIDTH == 240) && (LCD_HEIGHT == 320) #elif (LCD_WIDTH == 240) && ((LCD_HEIGHT == 320) || (LCD_HEIGHT == 400))
#define BLOCK_WIDTH 15 #define BLOCK_WIDTH 15
#define BLOCK_HEIGHT 15 #define BLOCK_HEIGHT 15

View file

@ -98,6 +98,10 @@ PLUGIN_HEADER
#define ONEDROCKBLOX_DOWN BUTTON_SELECT #define ONEDROCKBLOX_DOWN BUTTON_SELECT
#define ONEDROCKBLOX_QUIT BUTTON_POWER #define ONEDROCKBLOX_QUIT BUTTON_POWER
#elif (CONFIG_KEYPAD == ONDAVX747_PAD)
#define ONEDROCKBLOX_DOWN BUTTON_MENU
#define ONEDROCKBLOX_QUIT BUTTON_POWER
#else #else
#error No keymap defined! #error No keymap defined!
#endif #endif

View file

@ -238,6 +238,11 @@ static void setoptions (void)
options.START=BUTTON_VIEW; options.START=BUTTON_VIEW;
options.SELECT=BUTTON_SELECT; options.SELECT=BUTTON_SELECT;
options.MENU=BUTTON_MENU; options.MENU=BUTTON_MENU;
#elif CONFIG_KEYPAD == ONDAVX747_PAD
options.A=BUTTON_VOL_UP;
options.B=BUTTON_VOL_DOWN;
options.MENU=BUTTON_MENU;
#else #else
#error No Keymap Defined! #error No Keymap Defined!
#endif #endif

View file

@ -157,6 +157,10 @@ PLUGIN_HEADER
#define ROCKPAINT_LEFT BUTTON_LEFT #define ROCKPAINT_LEFT BUTTON_LEFT
#define ROCKPAINT_RIGHT BUTTON_RIGHT #define ROCKPAINT_RIGHT BUTTON_RIGHT
#elif ( CONFIG_KEYPAD == ONDAVX747_PAD )
#define ROCKPAINT_QUIT BUTTON_POWER
#define ROCKPAINT_MENU BUTTON_MENU
#else #else
#error "Please define keys for this keypad" #error "Please define keys for this keypad"
#endif #endif

View file

@ -190,6 +190,10 @@ PLUGIN_HEADER
#define PUZZLE_SHUFFLE BUTTON_VIEW #define PUZZLE_SHUFFLE BUTTON_VIEW
#define PUZZLE_PICTURE BUTTON_MENU #define PUZZLE_PICTURE BUTTON_MENU
#elif (CONFIG_KEYPAD == ONDAVX747_PAD)
#define PUZZLE_QUIT BUTTON_POWER
#define PUZZLE_QUIT_TEXT "[POWER]"
#else #else
#error No keymap defined! #error No keymap defined!
#endif #endif

View file

@ -164,6 +164,9 @@ PLUGIN_HEADER
#define SNAKE_DOWN BUTTON_DOWN #define SNAKE_DOWN BUTTON_DOWN
#define SNAKE_PLAYPAUSE BUTTON_MENU #define SNAKE_PLAYPAUSE BUTTON_MENU
#elif (CONFIG_KEYPAD == ONDAVX747_PAD)
#define SNAKE_QUIT BUTTON_POWER
#else #else
#error No keymap defined! #error No keymap defined!
#endif #endif

View file

@ -350,6 +350,9 @@ PLUGIN_HEADER
#define SNAKE2_PLAYPAUSE BUTTON_VIEW #define SNAKE2_PLAYPAUSE BUTTON_VIEW
#define SNAKE2_PLAYPAUSE_TEXT "View" #define SNAKE2_PLAYPAUSE_TEXT "View"
#elif (CONFIG_KEYPAD == ONDAVX747_PAD)
#define SNAKE2_QUIT BUTTON_POWER
#else #else
#error No keymap defined! #error No keymap defined!
#endif #endif

View file

@ -74,6 +74,8 @@ PLUGIN_HEADER
#define SNOW_QUIT BUTTON_BACK #define SNOW_QUIT BUTTON_BACK
#elif CONFIG_KEYPAD == PHILIPS_HDD1630_PAD #elif CONFIG_KEYPAD == PHILIPS_HDD1630_PAD
#define SNOW_QUIT BUTTON_POWER #define SNOW_QUIT BUTTON_POWER
#elif CONFIG_KEYPAD == ONDAVX747_PAD
#define SNOW_QUIT BUTTON_POWER
#else #else
#define SNOW_QUIT BUTTON_OFF #define SNOW_QUIT BUTTON_OFF
#if (CONFIG_KEYPAD == IRIVER_H100_PAD) || (CONFIG_KEYPAD == IRIVER_H300_PAD) #if (CONFIG_KEYPAD == IRIVER_H100_PAD) || (CONFIG_KEYPAD == IRIVER_H300_PAD)

View file

@ -376,6 +376,10 @@ PLUGIN_HEADER
#define BUTTON_SAVE BUTTON_PLAYLIST #define BUTTON_SAVE BUTTON_PLAYLIST
#define BUTTON_SAVE_NAME "PLAYLIST" #define BUTTON_SAVE_NAME "PLAYLIST"
#elif CONFIG_KEYPAD == ONDAVX747_PAD
#define SOKOBAN_MENU BUTTON_MENU
#define SOKOBAN_MENU_NAME "[MENU]"
#else #else
#error No keymap defined! #error No keymap defined!
#endif #endif

View file

@ -398,6 +398,9 @@ PLUGIN_HEADER
# define HK_CUR2STACK "SELECT.." # define HK_CUR2STACK "SELECT.."
# define HK_REM2STACK "VIEW+RIGHT" # define HK_REM2STACK "VIEW+RIGHT"
#elif (CONFIG_KEYPAD == ONDAVX747_PAD)
# define SOL_QUIT BUTTON_POWER
#else #else
#error No keymap defined! #error No keymap defined!
#endif #endif

View file

@ -267,6 +267,9 @@ PLUGIN_HEADER
#define AST_FIRE BUTTON_PLAYLIST #define AST_FIRE BUTTON_PLAYLIST
#define AST_FIRE_REP (BUTTON_PLAYLIST | BUTTON_REPEAT) #define AST_FIRE_REP (BUTTON_PLAYLIST | BUTTON_REPEAT)
#elif (CONFIG_KEYPAD == ONDAVX747_PAD)
#define AST_QUIT BUTTON_POWER
#else #else
#error No keymap defined! #error No keymap defined!
#endif #endif

View file

@ -262,6 +262,12 @@ PLUGIN_HEADER
#define STAR_LEVEL_REPEAT BUTTON_VIEW #define STAR_LEVEL_REPEAT BUTTON_VIEW
#define STAR_MENU_RUN BUTTON_MENU #define STAR_MENU_RUN BUTTON_MENU
#elif (CONFIG_KEYPAD == ONDAVX747_PAD)
#define STAR_QUIT BUTTON_POWER
#define STAR_QUIT_NAME "[POWER]"
#define STAR_MENU_RUN BUTTON_MENU
#else #else
#error No keymap defined! #error No keymap defined!
#endif #endif

View file

@ -123,6 +123,10 @@ PLUGIN_HEADER
#define STARFIELD_INCREASE_NB_STARS BUTTON_RIGHT #define STARFIELD_INCREASE_NB_STARS BUTTON_RIGHT
#define STARFIELD_DECREASE_NB_STARS BUTTON_LEFT #define STARFIELD_DECREASE_NB_STARS BUTTON_LEFT
#define STARFIELD_TOGGLE_COLOR BUTTON_SELECT #define STARFIELD_TOGGLE_COLOR BUTTON_SELECT
#elif (CONFIG_KEYPAD == ONDAVX747_PAD)
#define STARFIELD_QUIT BUTTON_POWER
#endif #endif
#ifdef HAVE_TOUCHSCREEN #ifdef HAVE_TOUCHSCREEN

View file

@ -93,6 +93,9 @@ static bool abort;
#elif CONFIG_KEYPAD == PHILIPS_HDD1630_PAD #elif CONFIG_KEYPAD == PHILIPS_HDD1630_PAD
#define STATS_STOP BUTTON_POWER #define STATS_STOP BUTTON_POWER
#elif CONFIG_KEYPAD == ONDAVX747_PAD
#define STATS_STOP BUTTON_POWER
#else #else
#error No keymap defined! #error No keymap defined!
#endif #endif

View file

@ -199,6 +199,9 @@ PLUGIN_HEADER
#define STOPWATCH_SCROLL_UP BUTTON_UP #define STOPWATCH_SCROLL_UP BUTTON_UP
#define STOPWATCH_SCROLL_DOWN BUTTON_DOWN #define STOPWATCH_SCROLL_DOWN BUTTON_DOWN
#elif CONFIG_KEYPAD == ONDAVX747_PAD
#define STOPWATCH_QUIT BUTTON_POWER
#else #else
#error No keymap defined! #error No keymap defined!
#endif #endif

View file

@ -255,6 +255,10 @@
#define SUDOKU_BUTTON_MENU BUTTON_MENU #define SUDOKU_BUTTON_MENU BUTTON_MENU
#define SUDOKU_BUTTON_POSSIBLE BUTTON_VIEW #define SUDOKU_BUTTON_POSSIBLE BUTTON_VIEW
#elif (CONFIG_KEYPAD == ONDAVX747_PAD)
#define SUDOKU_BUTTON_QUIT BUTTON_POWER
#define SUDOKU_BUTTON_MENU BUTTON_MENU
#else #else
#error No keymap defined! #error No keymap defined!
#endif #endif

View file

@ -63,7 +63,7 @@ char buf[255];
#define ICON_HEIGHT 10 #define ICON_HEIGHT 10
#define ICON_WIDTH 10 #define ICON_WIDTH 10
#elif (LCD_WIDTH == 240 && LCD_HEIGHT == 320) #elif (LCD_WIDTH == 240 && (LCD_HEIGHT == 320 || LCD_HEIGHT == 400))
#define NUM_BOX_HEIGHT 25 #define NUM_BOX_HEIGHT 25
#define NUM_BOX_WIDTH 30 #define NUM_BOX_WIDTH 30
#define STRIDE 18 #define STRIDE 18
@ -141,6 +141,9 @@ char buf[255];
#define SUPERDOM_RIGHT BUTTON_RIGHT #define SUPERDOM_RIGHT BUTTON_RIGHT
#define SUPERDOM_CANCEL BUTTON_BACK #define SUPERDOM_CANCEL BUTTON_BACK
#elif CONFIG_KEYPAD == ONDAVX747_PAD
#define SUPERDOM_CANCEL BUTTON_POWER
#endif #endif
#ifdef HAVE_TOUCHSCREEN #ifdef HAVE_TOUCHSCREEN

View file

@ -28,7 +28,7 @@ PLUGIN_HEADER
#define TESTCODEC_EXITBUTTON BUTTON_RIGHT #define TESTCODEC_EXITBUTTON BUTTON_RIGHT
#elif CONFIG_KEYPAD == IAUDIO_M3_PAD #elif CONFIG_KEYPAD == IAUDIO_M3_PAD
#define TESTCODEC_EXITBUTTON BUTTON_RC_PLAY #define TESTCODEC_EXITBUTTON BUTTON_RC_PLAY
#elif CONFIG_KEYPAD == COWOND2_PAD #elif CONFIG_KEYPAD == COWOND2_PAD || CONFIG_KEYPAD == ONDAVX747_PAD
#define TESTCODEC_EXITBUTTON BUTTON_POWER #define TESTCODEC_EXITBUTTON BUTTON_POWER
#else #else
#define TESTCODEC_EXITBUTTON BUTTON_SELECT #define TESTCODEC_EXITBUTTON BUTTON_SELECT

View file

@ -28,6 +28,9 @@ PLUGIN_HEADER
#elif (CONFIG_KEYPAD == MROBE500_PAD) #elif (CONFIG_KEYPAD == MROBE500_PAD)
#define TOUCHSCREEN_QUIT BUTTON_POWER #define TOUCHSCREEN_QUIT BUTTON_POWER
#define TOUCHSCREEN_TOGGLE BUTTON_RC_MODE #define TOUCHSCREEN_TOGGLE BUTTON_RC_MODE
#elif (CONFIG_KEYPAD == ONDAVX747_PAD)
#define TOUCHSCREEN_QUIT BUTTON_POWER
#define TOUCHSCREEN_TOGGLE BUTTON_MENU
#endif #endif
/* plugin entry point */ /* plugin entry point */

View file

@ -324,6 +324,11 @@ PLUGIN_HEADER
#define VIEWER_MENU BUTTON_MENU #define VIEWER_MENU BUTTON_MENU
#define VIEWER_AUTOSCROLL BUTTON_VIEW #define VIEWER_AUTOSCROLL BUTTON_VIEW
/* Onda VX747 keys */
#elif CONFIG_KEYPAD == ONDAVX747_PAD
#define VIEWER_QUIT BUTTON_POWER
#define VIEWER_MENU BUTTON_MENU
#else #else
#error No keymap defined! #error No keymap defined!
#endif #endif

View file

@ -274,6 +274,13 @@ PLUGIN_HEADER
#define LABEL_MENU "MENU" #define LABEL_MENU "MENU"
#define LABEL_VOLUME "UP/DOWN" #define LABEL_VOLUME "UP/DOWN"
#elif CONFIG_KEYPAD == ONDAVX747_PAD
#define VUMETER_QUIT BUTTON_POWER
#define VUMETER_MENU BUTTON_MENU
#define VUMETER_MENU_EXIT BUTTON_POWER
#define LABEL_QUIT "POWER"
#define LABEL_MENU "MENU"
#else #else
#error No keymap defined! #error No keymap defined!
#endif #endif

View file

@ -275,6 +275,10 @@ PLUGIN_HEADER
#define PLAYERS_TEXT "Up/Down" #define PLAYERS_TEXT "Up/Down"
#define WORMS_TEXT "Left/Right" #define WORMS_TEXT "Left/Right"
#elif (CONFIG_KEYPAD == ONDAVX747_PAD)
#define BTN_QUIT BUTTON_POWER
#else #else
#error No keymap defined! #error No keymap defined!
#endif #endif
@ -366,7 +370,7 @@ PLUGIN_HEADER
#define ARGH_SIZE 8 #define ARGH_SIZE 8
#define SPEED 4 #define SPEED 4
#define MAX_WORM_SEGMENTS 512 #define MAX_WORM_SEGMENTS 512
#elif (LCD_WIDTH == 240) && (LCD_HEIGHT == 320) #elif (LCD_WIDTH == 240) && ((LCD_HEIGHT == 320) || (LCD_HEIGHT == 400))
#define FOOD_SIZE 7 #define FOOD_SIZE 7
#define ARGH_SIZE 8 #define ARGH_SIZE 8
#define SPEED 4 #define SPEED 4

View file

@ -192,6 +192,10 @@ PLUGIN_HEADER
#define DOWN BUTTON_DOWN #define DOWN BUTTON_DOWN
#define PAUSE BUTTON_VIEW #define PAUSE BUTTON_VIEW
#elif CONFIG_KEYPAD == ONDAVX747_PAD
#define QUIT BUTTON_POWER
#else #else
#error No keymap defined! #error No keymap defined!
#endif #endif

View file

@ -150,6 +150,9 @@
#define ZX_SELECT BUTTON_SELECT #define ZX_SELECT BUTTON_SELECT
#define ZX_MENU BUTTON_MENU #define ZX_MENU BUTTON_MENU
#elif CONFIG_KEYPAD == ONDAVX747_PAD
#define ZX_MENU (BUTTON_MENU|BUTTON_REL)
#else #else
#error Keymap not defined! #error Keymap not defined!