plat_init();
menu_init(); // loads config
pl_init();
- plat_rescan_inputs();
if (psxout)
Config.PsxOut = 1;
default: in_type2 = PSE_PAD_TYPE_STANDARD;
}
if (in_evdev_allow_abs_only != allow_abs_only_old) {
- plat_rescan_inputs();
+ in_probe();
allow_abs_only_old = in_evdev_allow_abs_only;
}
static int mh_input_rescan(int id, int keys)
{
//menu_sync_config();
- plat_rescan_inputs();
+ in_probe();
me_update_msg("rescan complete.");
return 0;
void *plat_prepare_screenshot(int *w, int *h, int *bpp);
-int plat_rescan_inputs(void);
void plat_step_volume(int is_up);
int plat_cpu_clock_get(void);
int plat_cpu_clock_apply(int cpu_clock);
int plat_get_bat_capacity(void);
+
+// XXX
+int plat_pandora_init(void);
return 0;
}
-int plat_rescan_inputs(void)
-{
- return -1;
-}
-
int plat_cpu_clock_get(void)
{
return -1;
}
g_menubg_ptr = temp_frame;
+ plat_pandora_init(); // XXX
+
return;
fail1:
//printf("%4d %4d %4d %4d\n", in_a1[0], in_a1[1], in_a2[0], in_a2[1]);
}
-int plat_rescan_inputs(void)
+int plat_pandora_init(void)
{
in_probe();
in_set_config(in_name_to_id("evdev:gpio-keys"), IN_CFG_KEY_NAMES,
return 0;
}
+static void caanoo_init(void);
+
+
static void *fb_flip(void)
{
memregl[0x406C>>2] = memregl[0x446C>>2] = fb_paddrs[fb_work_buf];
in_gp2x_init();
}
+ in_tsbutton_init();
+ in_probe();
+ if (gp2x_dev_id == GP2X_DEV_CAANOO)
+ caanoo_init();
+
mixerdev = open("/dev/mixer", O_RDWR);
if (mixerdev == -1)
perror("open(/dev/mixer)");
psx_width = 320;
psx_height = 240;
psx_bpp = 16;
-
- in_tsbutton_init();
}
void plat_finish(void)
// unused dummy for in_gp2x
volatile unsigned short *gp2x_memregs;
-int plat_rescan_inputs(void)
+static void caanoo_init(void)
{
- in_probe();
- if (gp2x_dev_id == GP2X_DEV_CAANOO)
- in_set_config(in_name_to_id("evdev:pollux-analog"), IN_CFG_KEY_NAMES,
- caanoo_keys, sizeof(caanoo_keys));
-
- return 0;
+ in_set_config(in_name_to_id("evdev:pollux-analog"), IN_CFG_KEY_NAMES,
+ caanoo_keys, sizeof(caanoo_keys));
}