plat_video_menu_end();\r
}\r
\r
-static int me_process(menu_entry *entry, int is_next)\r
+static int me_process(menu_entry *entry, int is_next, int is_lr)\r
{\r
+ int c;\r
switch (entry->beh)\r
{\r
case MB_OPT_ONOFF:\r
return 1;\r
case MB_OPT_RANGE:\r
case MB_OPT_CUSTRANGE:\r
- *(int *)entry->var += is_next ? 1 : -1;\r
+ c = is_lr ? 10 : 1;\r
+ *(int *)entry->var += is_next ? c : -c;\r
if (*(int *)entry->var < (int)entry->min)\r
*(int *)entry->var = (int)entry->max;\r
if (*(int *)entry->var > (int)entry->max)\r
if ((inp & (PBTN_L|PBTN_R)) == (PBTN_L|PBTN_R))\r
debug_menu_loop();\r
\r
- if (inp & (PBTN_LEFT|PBTN_RIGHT)) { /* multi choice */\r
- if (me_process(&menu[sel], (inp & PBTN_RIGHT) ? 1 : 0))\r
+ if (inp & (PBTN_LEFT|PBTN_RIGHT|PBTN_L|PBTN_R)) { /* multi choice */\r
+ if (me_process(&menu[sel], (inp & (PBTN_RIGHT|PBTN_R)) ? 1 : 0,\r
+ inp & (PBTN_L|PBTN_R)))\r
continue;\r
}\r
\r
-#ifdef __GP2X_H__
+#ifdef __GP2X__
#include <time.h>
#include "soc.h"
#define MENU_GP2X_OPTIONS_GFX
#define MENU_GP2X_OPTIONS_ADV
#define mgn_opt_renderer NULL /* TODO */
+#define menu_main_plat_draw NULL
#endif