projects
/
libtouchmouse.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4b8ccbb
)
Only enumerate devices that match the right VendorID/ProductID.
author
Drew Fisher
<drew.m.fisher@gmail.com>
Tue, 25 Oct 2011 05:41:25 +0000
(22:41 -0700)
committer
Drew 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
patch
|
blob
|
history
diff --git
a/touchmouse.c
b/touchmouse.c
index 02baba09522f4b9cb23fd91434a5ad2427c99413..9b2285108432d76c87027f6168e752e79557db38 100644
(file)
--- 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(0x0
45e, 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) {