]> git.zarvox.org Git - libtouchmouse.git/commitdiff
Only enumerate devices that match the right VendorID/ProductID.
authorDrew Fisher <drew.m.fisher@gmail.com>
Tue, 25 Oct 2011 05:41:25 +0000 (22:41 -0700)
committerDrew Fisher <drew.m.fisher@gmail.com>
Tue, 25 Oct 2011 05:41:25 +0000 (22:41 -0700)
Signed-off-by: Drew Fisher <drew.m.fisher@gmail.com>
touchmouse.c

index 02baba09522f4b9cb23fd91434a5ad2427c99413..9b2285108432d76c87027f6168e752e79557db38 100644 (file)
@@ -247,7 +247,7 @@ int main(void) {
 
        // Open HID device.
        char* path = NULL;
-       devs = hid_enumerate(0x0, 0x0);
+       devs = hid_enumerate(0x045e, 0x0773); // 0x045e = Microsoft, 0x0773 = TouchMouse
        cur_dev = devs;
        while(cur_dev) {
                if (cur_dev->vendor_id == 0x045e && cur_dev->product_id == 0x0773 && cur_dev->interface_number == 2) {