Hi Can somebody give me a hint where I can start when I want to parse the hid_dump_tree()?
The thing is: I want to access specific data from a HID device, for example the X and Y coordinates. If I use a mouse from Cordless Desktop the important information looks like that: [...] path: 0x00010002.0x00010002.0x00010001.0x00000000; type: 0x80 path: 0x00010002.0x00010002.0x00010001.0x00000000; type: 0x80 path: 0x00010002.0x00010002.0x00010001.0x00000000; type: 0x80 path: 0x00010002.0x00010002.0x00010001.0x00000000; type: 0x80 path: 0x00010002.0x00010002.0x00010001.0x00000000; type: 0x80 path: 0x00010002.0x00010002.0x00010001.0x00000000; type: 0x80 path: 0x00010002.0x00010002.0x00010001.0x00010030; type: 0x80 path: 0x00010002.0x00010002.0x00010001.0x00010031; type: 0x80 [...] So to access my X and Y value I need the address: unsigned char const PATHLEN = 4; int const PATH_OUT[] = { 0x00010002, 0x00010002, 0x00010001, \ 0x00010031 }; (I set set manually in my prog!) From another, cheaper mouse, the hid_dump_tree() looks like that: [...] path: 0x00010001.0x00010030; type: 0x80 path: 0x00010001.0x00010031; type: 0x80 //(or kinda) [...] Much shorter! But how can I directly generate my PATH_OUT[] from it? Do I have to dive into hid_dump_tree()? AND: How can I get the RECV_PACKET_LEN for this address automatically? Or is it always the same length for each address (6)? The test_libhid.c doesn't tell where this value is detected. Bests, comicinker -- my public key is on hkp://pgp.mit.edu:11371 or ldap://keyserver.pgp.com
_______________________________________________ libhid-discuss mailing list libhid-discuss@lists.alioth.debian.org http://lists.alioth.debian.org/mailman/listinfo/libhid-discuss