-
Notifications
You must be signed in to change notification settings - Fork 452
Closed
Labels
hidrawRelated to Linux/hidraw backendRelated to Linux/hidraw backend
Description
So with this driver https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/commit/?id=cfd84b3f419bf0aec60ecddc92c61b539c339ec9 there is a virtual HID device i.e. a hid device that exists just in software and is not connected to a bus.
HIDAPI does net seems to recognize this.
My minimal test code:
#include <stdio.h>
#include <hidapi/hidapi.h>
int main() {
printf("HID Devices:\n");
struct hid_device_info *devi, *dev = hid_enumerate(0, 0);
devi = dev;
while(devi != NULL) {
printf("%04x:%04x\n", devi->vendor_id, devi->product_id);
devi = devi->next;
}
hid_free_enumeration(dev);
}
Compiled with gcc test.c -lhidapi-hidraw for the hidraw interface, this does not liste the device, while /sys/class/hidraw/ has the device.
Metadata
Metadata
Assignees
Labels
hidrawRelated to Linux/hidraw backendRelated to Linux/hidraw backend