aboutsummaryrefslogtreecommitdiff
path: root/frontend
diff options
context:
space:
mode:
authornotaz2011-07-06 21:40:06 +0300
committernotaz2011-07-13 01:36:17 +0300
commit69d41dfb344005792a17a529fdd18219c4998842 (patch)
tree0d8233197d05b693b66c2a470af958a0997c6839 /frontend
parentf3a770329bf0ac2d47d442eb70e8fcc25a7f8db2 (diff)
downloadpcsx_rearmed-69d41dfb344005792a17a529fdd18219c4998842.tar.gz
pcsx_rearmed-69d41dfb344005792a17a529fdd18219c4998842.tar.bz2
pcsx_rearmed-69d41dfb344005792a17a529fdd18219c4998842.zip
frontend: sync with pico code
Diffstat (limited to 'frontend')
-rw-r--r--frontend/linux/in_evdev.c37
-rw-r--r--frontend/linux/plat.c2
2 files changed, 1 insertions, 38 deletions
diff --git a/frontend/linux/in_evdev.c b/frontend/linux/in_evdev.c
index d33dbc5..f88d74c 100644
--- a/frontend/linux/in_evdev.c
+++ b/frontend/linux/in_evdev.c
@@ -538,43 +538,6 @@ static int in_evdev_menu_translate(void *drv_data, int keycode)
return 0;
}
-/* FIXME: move to plat */
-#if 0
-static const struct {
- short code;
- char btype;
- char bit;
-} in_evdev_def_binds[] =
-{
- /* MXYZ SACB RLDU */
- { KEY_UP, IN_BINDTYPE_PLAYER12, 0 },
- { KEY_DOWN, IN_BINDTYPE_PLAYER12, 1 },
- { KEY_LEFT, IN_BINDTYPE_PLAYER12, 2 },
- { KEY_RIGHT, IN_BINDTYPE_PLAYER12, 3 },
- { KEY_S, IN_BINDTYPE_PLAYER12, 4 }, /* B */
- { KEY_D, IN_BINDTYPE_PLAYER12, 5 }, /* C */
- { KEY_A, IN_BINDTYPE_PLAYER12, 6 }, /* A */
- { KEY_ENTER, IN_BINDTYPE_PLAYER12, 7 },
- { KEY_BACKSLASH, IN_BINDTYPE_EMU, PEVB_MENU },
- /* Pandora */
- { KEY_PAGEDOWN, IN_BINDTYPE_PLAYER12, 4 },
- { KEY_END, IN_BINDTYPE_PLAYER12, 5 },
- { KEY_HOME, IN_BINDTYPE_PLAYER12, 6 },
- { KEY_LEFTALT, IN_BINDTYPE_PLAYER12, 7 },
- { KEY_RIGHTSHIFT,IN_BINDTYPE_EMU, PEVB_STATE_SAVE },
- { KEY_RIGHTCTRL, IN_BINDTYPE_EMU, PEVB_STATE_LOAD },
- { KEY_LEFTCTRL, IN_BINDTYPE_EMU, PEVB_MENU },
- /* Caanoo */
- { BTN_THUMB, IN_BINDTYPE_PLAYER12, 4 }, /* B */
- { BTN_THUMB2, IN_BINDTYPE_PLAYER12, 5 }, /* C */
- { BTN_TRIGGER, IN_BINDTYPE_PLAYER12, 6 }, /* A */
- { BTN_BASE3, IN_BINDTYPE_PLAYER12, 7 },
- { BTN_TOP2, IN_BINDTYPE_EMU, PEVB_STATE_SAVE },
- { BTN_PINKIE, IN_BINDTYPE_EMU, PEVB_STATE_LOAD },
- { BTN_BASE, IN_BINDTYPE_EMU, PEVB_MENU },
-};
-#endif
-
static void in_evdev_get_def_binds(int *binds)
{
int i;
diff --git a/frontend/linux/plat.c b/frontend/linux/plat.c
index 1e107f4..ec2aa8b 100644
--- a/frontend/linux/plat.c
+++ b/frontend/linux/plat.c
@@ -48,7 +48,7 @@ int plat_get_root_dir(char *dst, int len)
break;
}
- return 0;
+ return j;
}
#ifdef __GP2X__