mirror of
https://gitlab.freedesktop.org/libevdev/libevdev.git
synced 2025-12-20 15:00:06 +01:00
uinput: make a note that the syspath we return is the input node
And not the syspath for the /dev/input/eventX node Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
parent
b08a3c70e5
commit
c6e11a0a80
1 changed files with 5 additions and 0 deletions
|
|
@ -186,10 +186,15 @@ int libevdev_uinput_get_fd(const struct libevdev_uinput *uinput_dev);
|
||||||
* ioctl not available, libevdev makes an educated guess.
|
* ioctl not available, libevdev makes an educated guess.
|
||||||
* The UI_GET_SYSNAME ioctl is available since Linux 3.15.
|
* The UI_GET_SYSNAME ioctl is available since Linux 3.15.
|
||||||
*
|
*
|
||||||
|
* The syspath returned is the one of the input node itself
|
||||||
|
* (e.g. /sys/devices/virtual/input/input123), not the syspath of the device
|
||||||
|
* node returned with libevdev_uinput_get_devnode().
|
||||||
|
*
|
||||||
* @note This function may return NULL if UI_GET_SYSNAME is not available.
|
* @note This function may return NULL if UI_GET_SYSNAME is not available.
|
||||||
* In that case, libevdev uses ctime and the device name to guess devices.
|
* In that case, libevdev uses ctime and the device name to guess devices.
|
||||||
* To avoid false positives, wait at least wait at least 1.5s between
|
* To avoid false positives, wait at least wait at least 1.5s between
|
||||||
* creating devices that have the same name.
|
* creating devices that have the same name.
|
||||||
|
*
|
||||||
* @param uinput_dev A previously created uinput device.
|
* @param uinput_dev A previously created uinput device.
|
||||||
* @return The syspath for this device, including the preceding /sys
|
* @return The syspath for this device, including the preceding /sys
|
||||||
*
|
*
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue