unified menu wip and some reorganization for it
[libpicofe.git] / gp2x / emu.c
index aef34b0..b9079a9 100644 (file)
@@ -22,6 +22,7 @@
 #include "../common/fonts.h"\r
 #include "../common/emu.h"\r
 #include "../common/config.h"\r
+#include "../common/input.h"\r
 #include "../linux/sndout_oss.h"\r
 #include "cpuctrl.h"\r
 \r
@@ -580,6 +581,10 @@ static void updateKeys(void)
        keys &= CONFIGURABLE_KEYS;\r
        keys2 = keys;\r
 \r
+#if 1\r
+       /* FIXME: combos, player2 */\r
+       allActions[0] = in_update();\r
+#else\r
        for (i = 0; i < 32; i++)\r
        {\r
                if (keys2 & (1 << i))\r
@@ -607,6 +612,7 @@ static void updateKeys(void)
                        }\r
                }\r
        }\r
+#endif\r
 \r
        // add joy inputs\r
        if (num_of_joys > 0)\r