mirror of
https://github.com/libretro/RetroArch.git
synced 2025-02-25 12:20:48 +00:00
resolve changes
This commit is contained in:
parent
fd6856ce20
commit
74de0ade03
@ -511,32 +511,30 @@ static bool udev_input_add_device(udev_input_t *udev,
|
||||
{
|
||||
if (ioctl(fd, EVIOCGABS(ABS_X), &absinfo) >= 0)
|
||||
{
|
||||
|
||||
if (absinfo.minimum >= absinfo.maximum )
|
||||
{
|
||||
device->mouse.x_min = 0;
|
||||
device->mouse.x_max = 0;
|
||||
}
|
||||
else
|
||||
{
|
||||
device->mouse.x_min = absinfo.minimum;
|
||||
device->mouse.x_min = absinfo.maximum;
|
||||
}
|
||||
if (absinfo.minimum >= absinfo.maximum )
|
||||
{
|
||||
device->mouse.x_min = -1;
|
||||
device->mouse.x_max = 1;
|
||||
}
|
||||
else
|
||||
{
|
||||
device->mouse.x_min = absinfo.minimum;
|
||||
device->mouse.x_min = absinfo.maximum;
|
||||
}
|
||||
}
|
||||
|
||||
if (ioctl(fd, EVIOCGABS(ABS_Y), &absinfo) >= 0)
|
||||
if (ioctl(fd, EVIOCGABS(ABS_Y), &absinfo) >= 0)
|
||||
{
|
||||
|
||||
if (absinfo.minimum >= absinfo.maximum )
|
||||
{
|
||||
device->mouse.y_min = 0;
|
||||
device->mouse.y_max = 0;
|
||||
}
|
||||
else
|
||||
{
|
||||
device->mouse.y_min = absinfo.minimum;
|
||||
device->mouse.y_min = absinfo.maximum;
|
||||
}
|
||||
if (absinfo.minimum >= absinfo.maximum )
|
||||
{
|
||||
device->mouse.y_min = -1;
|
||||
device->mouse.y_max = 1;
|
||||
}
|
||||
else
|
||||
{
|
||||
device->mouse.y_min = absinfo.minimum;
|
||||
device->mouse.y_min = absinfo.maximum;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user