X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?p=pcsx_rearmed.git;a=blobdiff_plain;f=frontend%2Fplat_pandora.c;h=2522b0b066a910cefb198dbafaa480e51c8f80c8;hp=d869d24580d29359d698645434717005208e82c0;hb=b07c18e8645a17be916266820ae564e0d320cc1a;hpb=1b0c513996d57548fc5df8726e21a68e5ace4f99 diff --git a/frontend/plat_pandora.c b/frontend/plat_pandora.c index d869d245..2522b0b0 100644 --- a/frontend/plat_pandora.c +++ b/frontend/plat_pandora.c @@ -38,7 +38,7 @@ static const char * const pandora_gpio_keys[KEY_MAX + 1] = { [KEY_MENU] = "Pandora", }; -struct in_default_bind in_evdev_defbinds[] = { +static const struct in_default_bind in_evdev_defbinds[] = { { KEY_UP, IN_BINDTYPE_PLAYER12, DKEY_UP }, { KEY_DOWN, IN_BINDTYPE_PLAYER12, DKEY_DOWN }, { KEY_LEFT, IN_BINDTYPE_PLAYER12, DKEY_LEFT }, @@ -53,6 +53,7 @@ struct in_default_bind in_evdev_defbinds[] = { { KEY_RIGHTCTRL, IN_BINDTYPE_PLAYER12, DKEY_R1 }, { KEY_Q, IN_BINDTYPE_PLAYER12, DKEY_L2 }, { KEY_P, IN_BINDTYPE_PLAYER12, DKEY_R2 }, + { KEY_TAB, IN_BINDTYPE_EMU, SACTION_MINIMIZE }, { KEY_SPACE, IN_BINDTYPE_EMU, SACTION_ENTER_MENU }, { KEY_1, IN_BINDTYPE_EMU, SACTION_SAVE_STATE }, { KEY_2, IN_BINDTYPE_EMU, SACTION_LOAD_STATE }, @@ -65,6 +66,7 @@ struct in_default_bind in_evdev_defbinds[] = { int plat_pandora_init(void) { + in_evdev_init(in_evdev_defbinds); in_probe(); in_set_config(in_name_to_id("evdev:gpio-keys"), IN_CFG_KEY_NAMES, pandora_gpio_keys, sizeof(pandora_gpio_keys));