int key_count, t, i;
const int *def_binds;
- key_count = in_get_dev_bind_count(dev_id);
+ key_count = in_get_dev_info(dev_id, IN_INFO_BIND_COUNT);
def_binds = in_get_dev_def_binds(dev_id);
for (t = 0; t < key_count; t++)
sprintf(strbind, "bind%d", t);
if (t == 0) strbind[4] = 0;
- count = in_get_dev_bind_count(t);
+ count = in_get_dev_info(t, IN_INFO_BIND_COUNT);
keys_write(fn, strbind, t, binds, no_defaults);
}
return 0;
return 1;
+#if 0 // TODO rm?
case MA_OPT_CPU_CLOCKS:
#ifdef __GP2X__
if (strcasecmp(var, "GP2X CPU clocks") != 0) return 0;
#endif
currentConfig.CPUclock = atoi(val);
return 1;
+#endif
case MA_OPT2_GAMMA:
if (strcasecmp(var, "Gamma correction") != 0) return 0;