input: in_gp2x refactoring
[libpicofe.git] / gp2x / menu.c
index 9e53b25..eabd74e 100644 (file)
@@ -54,7 +54,7 @@ static void menu_main_plat_draw(void)
 
 // ------------ gfx options menu ------------
 
-static const char *mgn_aopt_gamma(menu_id id, int *offs)
+static const char *mgn_aopt_gamma(int id, int *offs)
 {
        sprintf(static_buff, "%i.%02i", currentConfig.gamma / 100, currentConfig.gamma % 100);
        return static_buff;
@@ -82,6 +82,7 @@ const char *men_scaling_opts[] = { "OFF", "software", "hardware", NULL };
 static menu_entry e_menu_adv_options[];
 static menu_entry e_menu_gfx_options[];
 static menu_entry e_menu_options[];
+static menu_entry e_menu_keyconfig[];
 
 void gp2x_menu_init(void)
 {
@@ -120,5 +121,8 @@ void gp2x_menu_init(void)
 
        if (gp2x_dev_id != GP2X_DEV_GP2X)
                men_scaling_opts[2] = NULL; /* leave only off and sw */
+
+       if (gp2x_dev_id != GP2X_DEV_CAANOO)
+               me_enable(e_menu_keyconfig, MA_CTRL_DEADZONE, 0);
 }