mirror of
https://github.com/libretro/RetroArch
synced 2025-03-29 22:20:21 +00:00
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_PAUSE, RETROK_PAUSE },
|
||||
{ 0, RETROK_UNKNOWN },
|
||||
};
|
||||
|
||||
|
||||
#endif
|
||||
|
||||
static enum retro_key rarch_keysym_lut[RETROK_LAST];
|
||||
|
@ -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++)
|
||||
|
Loading…
x
Reference in New Issue
Block a user