mirror of
https://github.com/libretro/RetroArch
synced 2025-02-07 12:39:54 +00:00
fix udev mouse
This commit is contained in:
parent
b89410043a
commit
07b17059f1
@ -523,7 +523,7 @@ static bool udev_input_add_device(udev_input_t *udev,
|
||||
device->mouse.y_max = absinfo.maximum;
|
||||
}
|
||||
/* UDEV_INPUT_MOUSE may report in absolute coords too */
|
||||
else if (type == UDEV_INPUT_MOUSE && ioctl(fd, EVIOCGABS(ABS_X), &absinfo) >= 0)
|
||||
else if (type == UDEV_INPUT_MOUSE && ioctl(fd, EVIOCGABS(ABS_X), &absinfo) > 0)
|
||||
{
|
||||
if (absinfo.minimum >= absinfo.maximum)
|
||||
goto error;
|
||||
|
Loading…
x
Reference in New Issue
Block a user