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