-// vim:shiftwidth=2:expandtab
+/*
+ * GINGE - GINGE Is Not Gp2x Emulator
+ * (C) notaz, 2010-2011
+ *
+ * This work is licensed under the MAME license, see COPYING file for details.
+ */
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#define BTN_JOY BTN_JOYSTICK
-struct in_default_bind in_evdev_defbinds[] = {
+static struct in_default_bind wiz_evdev_defbinds[] = {
{ KEY_UP, IN_BINDTYPE_PLAYER12, GP2X_UP },
{ KEY_DOWN, IN_BINDTYPE_PLAYER12, GP2X_DOWN },
{ KEY_LEFT, IN_BINDTYPE_PLAYER12, GP2X_LEFT },
{ 0, 0, 0 }
};
+static const struct in_pdata wiz_evdev_pdata = {
+ .defbinds = wiz_evdev_defbinds,
+};
+
// todo: rm when generic code works on Wiz
#if 0
static int gpiodev = -1;
actions[IN_BINDTYPE_PLAYER12] = act;
}
}
+
+static void host_init_input(void)
+{
+ in_evdev_init(&wiz_evdev_pdata);
+}
+
+// vim:shiftwidth=2:expandtab