2 * GINGE - GINGE Is Not Gp2x Emulator
3 * (C) notaz, 2010-2011,2015
5 * This work is licensed under the MAME license, see COPYING file for details.
8 static struct in_default_bind in_evdev_defbinds[] = {
9 { KEY_UP, IN_BINDTYPE_PLAYER12, GP2X_UP },
10 { KEY_LEFT, IN_BINDTYPE_PLAYER12, GP2X_LEFT },
11 { KEY_DOWN, IN_BINDTYPE_PLAYER12, GP2X_DOWN },
12 { KEY_RIGHT, IN_BINDTYPE_PLAYER12, GP2X_RIGHT },
13 { KEY_PAGEUP, IN_BINDTYPE_PLAYER12, GP2X_Y },
14 { KEY_END, IN_BINDTYPE_PLAYER12, GP2X_B },
15 { KEY_PAGEDOWN, IN_BINDTYPE_PLAYER12, GP2X_X },
16 { KEY_HOME, IN_BINDTYPE_PLAYER12, GP2X_A },
17 { KEY_RIGHTSHIFT, IN_BINDTYPE_PLAYER12, GP2X_L },
18 { KEY_RIGHTCTRL, IN_BINDTYPE_PLAYER12, GP2X_R },
19 { KEY_LEFTALT, IN_BINDTYPE_PLAYER12, GP2X_START },
20 { KEY_LEFTCTRL, IN_BINDTYPE_PLAYER12, GP2X_SELECT },
21 { KEY_COMMA, IN_BINDTYPE_PLAYER12, GP2X_VOL_DOWN },
22 { KEY_DOT, IN_BINDTYPE_PLAYER12, GP2X_VOL_UP },
23 { KEY_1, IN_BINDTYPE_PLAYER12, GP2X_PUSH },
24 { KEY_Q, IN_BINDTYPE_EMU, 0 },
28 static const struct in_pdata pandora_evdev_pdata = {
29 .defbinds = in_evdev_defbinds,
32 static void host_actions(int actions[IN_BINDTYPE_COUNT])
34 if (actions[IN_BINDTYPE_EMU] & 1)
38 static void host_init_input(void)
40 in_evdev_init(&pandora_evdev_pdata);
43 // vim:shiftwidth=2:expandtab