diff --git a/src/platforms/rcore_drm.c b/src/platforms/rcore_drm.c index cb2fcd74a192..bdfc9e0f5bd4 100644 --- a/src/platforms/rcore_drm.c +++ b/src/platforms/rcore_drm.c @@ -1549,9 +1549,14 @@ static void ConfigureEvdevDevice(char *device) ioctl(fd, EVIOCGABS(ABS_X), &absinfo); worker->absRange.x = 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); worker->absRange.y = 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) @@ -1563,9 +1568,14 @@ static void ConfigureEvdevDevice(char *device) ioctl(fd, EVIOCGABS(ABS_X), &absinfo); worker->absRange.x = 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); worker->absRange.y = absinfo.minimum; worker->absRange.height = absinfo.maximum - absinfo.minimum; + platform.absRange.y = absinfo.minimum; + platform.absRange.height = absinfo.maximum - absinfo.minimum; } }