mirror of
https://gitlab.freedesktop.org/libevdev/libevdev.git
synced 2025-12-25 01:10:10 +01:00
test: copy absinfo over to the uinput_user_dev before creation
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
parent
0954af8ec8
commit
15df738068
1 changed files with 8 additions and 0 deletions
|
|
@ -240,6 +240,14 @@ uinput_device_create(struct uinput_device* d)
|
|||
rc = ioctl(fd, uinput_bit, code);
|
||||
if (rc == -1)
|
||||
goto error;
|
||||
|
||||
if (type == EV_ABS) {
|
||||
dev.absmin[code] = d->d.abs_info[code].minimum;
|
||||
dev.absmax[code] = d->d.abs_info[code].maximum;
|
||||
dev.absfuzz[code] = d->d.abs_info[code].fuzz;
|
||||
dev.absflat[code] = d->d.abs_info[code].flat;
|
||||
/* FIXME: uinput has no resolution */
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue