Fix absRange for PLATFORM_DRM (#3517)
This commit is contained in:
parent
580fbf441c
commit
271a72f2f2
@ -1549,9 +1549,14 @@ static void ConfigureEvdevDevice(char *device)
|
|||||||
ioctl(fd, EVIOCGABS(ABS_X), &absinfo);
|
ioctl(fd, EVIOCGABS(ABS_X), &absinfo);
|
||||||
worker->absRange.x = absinfo.minimum;
|
worker->absRange.x = absinfo.minimum;
|
||||||
worker->absRange.width = absinfo.maximum - absinfo.minimum;
|
worker->absRange.width = absinfo.maximum - absinfo.minimum;
|
||||||
|
platform.absRange.x = absinfo.minimum;
|
||||||
|
platform.absRange.width = absinfo.maximum - absinfo.minimum;
|
||||||
|
|
||||||
ioctl(fd, EVIOCGABS(ABS_Y), &absinfo);
|
ioctl(fd, EVIOCGABS(ABS_Y), &absinfo);
|
||||||
worker->absRange.y = absinfo.minimum;
|
worker->absRange.y = absinfo.minimum;
|
||||||
worker->absRange.height = absinfo.maximum - absinfo.minimum;
|
worker->absRange.height = absinfo.maximum - absinfo.minimum;
|
||||||
|
platform.absRange.y = absinfo.minimum;
|
||||||
|
platform.absRange.height = absinfo.maximum - absinfo.minimum;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Check for multiple absolute movement support (usually multitouch touchscreens)
|
// Check for multiple absolute movement support (usually multitouch touchscreens)
|
||||||
@ -1563,9 +1568,14 @@ static void ConfigureEvdevDevice(char *device)
|
|||||||
ioctl(fd, EVIOCGABS(ABS_X), &absinfo);
|
ioctl(fd, EVIOCGABS(ABS_X), &absinfo);
|
||||||
worker->absRange.x = absinfo.minimum;
|
worker->absRange.x = absinfo.minimum;
|
||||||
worker->absRange.width = absinfo.maximum - absinfo.minimum;
|
worker->absRange.width = absinfo.maximum - absinfo.minimum;
|
||||||
|
platform.absRange.x = absinfo.minimum;
|
||||||
|
platform.absRange.width = absinfo.maximum - absinfo.minimum;
|
||||||
|
|
||||||
ioctl(fd, EVIOCGABS(ABS_Y), &absinfo);
|
ioctl(fd, EVIOCGABS(ABS_Y), &absinfo);
|
||||||
worker->absRange.y = absinfo.minimum;
|
worker->absRange.y = absinfo.minimum;
|
||||||
worker->absRange.height = absinfo.maximum - absinfo.minimum;
|
worker->absRange.height = absinfo.maximum - absinfo.minimum;
|
||||||
|
platform.absRange.y = absinfo.minimum;
|
||||||
|
platform.absRange.height = absinfo.maximum - absinfo.minimum;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user