Fix minor crash and mouse.
This commit is contained in:
parent
c21310b261
commit
f4d79eaf0e
|
@ -736,9 +736,8 @@ const struct rarch_key_map rarch_key_map_linux[] = {
|
||||||
{ KEY_DELETE, RETROK_DELETE },
|
{ KEY_DELETE, RETROK_DELETE },
|
||||||
|
|
||||||
{ KEY_PAUSE, RETROK_PAUSE },
|
{ KEY_PAUSE, RETROK_PAUSE },
|
||||||
|
{ 0, RETROK_UNKNOWN },
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
static enum retro_key rarch_keysym_lut[RETROK_LAST];
|
static enum retro_key rarch_keysym_lut[RETROK_LAST];
|
||||||
|
|
|
@ -91,7 +91,7 @@ static void udev_input_poll(void *data)
|
||||||
|
|
||||||
int i, len;
|
int i, len;
|
||||||
struct input_event events[32];
|
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);
|
len /= sizeof(*events);
|
||||||
for (i = 0; i < len; i++)
|
for (i = 0; i < len; i++)
|
||||||
|
|
Loading…
Reference in New Issue