hidapi always get the usage and usage page zero on linux

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi everyone

A few days ago, I initiated a discussion about how to use hidapi.

Now, I make a simple test to use it, but I always get 0 when I plug in a mouse or keyboard and get their 'usage' nad 'usage page'
I'm using ubuntu 14.04 (linux) and imx6 device(4.1.15).

Here is output of a mouse device on linux:
It's a hid device
libusb: VID: 3599 PID: 3
device: PID:3 VID:3599 usage:0 usage page:0
release: 258 interface: 0 path: 0002:0002:00
device: PID:3 VID:3599 usage:0 usage page:0
release: 258 interface: 1 path: 0002:0002:01
Manufacturer: VMware

Product: VMware Virtual USB Mouse

OTOH, I can't get list by hid_enumerate() on ARM but it return success when hid_init();

what's the problem? 
PS:Here is the files of libusb and hidapi
Regards
Mihan

Attachment: USBPlugin.cpp
Description: Binary data

Attachment: USBPlugin.h
Description: Binary data

Attachment: USBPlugin.pro
Description: Binary data

Attachment: usbplugin_global.h
Description: Binary data

_______________________________________________
pulseaudio-discuss mailing list
pulseaudio-discuss@xxxxxxxxxxxxxxxxxxxxx
https://lists.freedesktop.org/mailman/listinfo/pulseaudio-discuss

[Index of Archives]     [Linux Audio Users]     [AMD Graphics]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux