Fix minor crash and mouse.

This commit is contained in:
Themaister 2013-12-07 14:16:17 +01:00
parent c21310b261
commit f4d79eaf0e
2 changed files with 2 additions and 3 deletions

View File

@ -736,9 +736,8 @@ const struct rarch_key_map rarch_key_map_linux[] = {
{ KEY_DELETE, RETROK_DELETE },
{ KEY_PAUSE, RETROK_PAUSE },
{ 0, RETROK_UNKNOWN },
};
#endif
static enum retro_key rarch_keysym_lut[RETROK_LAST];

View File

@ -91,7 +91,7 @@ static void udev_input_poll(void *data)
int i, len;
struct input_event events[32];
while ((len = read(udev->keyboard_fd, events, sizeof(events))) > 0)
while ((len = read(udev->mouse_fd, events, sizeof(events))) > 0)
{
len /= sizeof(*events);
for (i = 0; i < len; i++)