Sample Header Ad - 728x90

Linux evdev subsystem vs libusb

0 votes
1 answer
399 views
What are the advantages and disadvantages to using the evdev subsystem versus accessing input devices using libusb? The kernel docs for evdev state: > This is the preferred interface for userspace to consume user input, > and all clients are encouraged to use it. That's strong language. From python (for example) I can access an HID device with https://github.com/gvalkov/python-evdev or https://github.com/trezor/cython-hidapi . These seem to achieve the same goal. Does using libusb add latency? https://unix.stackexchange.com/questions/109406/how-does-libusb-access-kernel-stuff does not seem to mention evdev. Does libusb use libevdev or a similar subsystem?
Asked by Jared (105 rep)
Oct 6, 2022, 09:49 PM
Last activity: Oct 7, 2022, 06:30 AM