From: Drew Fisher Date: Tue, 25 Oct 2011 05:41:25 +0000 (-0700) Subject: Only enumerate devices that match the right VendorID/ProductID. X-Git-Url: https://git.zarvox.org/shortlog/month?a=commitdiff_plain;h=7eaf1e2f7d6a8c9f8e73662992fc025e1def685b;p=libtouchmouse.git Only enumerate devices that match the right VendorID/ProductID. Signed-off-by: Drew Fisher --- diff --git a/touchmouse.c b/touchmouse.c index 02baba0..9b22851 100644 --- a/touchmouse.c +++ b/touchmouse.c @@ -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) {