From 7eaf1e2f7d6a8c9f8e73662992fc025e1def685b Mon Sep 17 00:00:00 2001 From: Drew Fisher Date: Mon, 24 Oct 2011 22:41:25 -0700 Subject: [PATCH] Only enumerate devices that match the right VendorID/ProductID. Signed-off-by: Drew Fisher --- touchmouse.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) { -- 2.39.2