diff options
author | Parabola <dev@list.parabolagnulinux.org> | 2011-04-05 14:26:38 +0000 |
---|---|---|
committer | Parabola <dev@list.parabolagnulinux.org> | 2011-04-05 14:26:38 +0000 |
commit | 415856bdd4f48ab4f2732996f0bae58595092bbe (patch) | |
tree | ede2018b591f6dfb477fe9341ba17b9bc000fab9 /community/lmctl/mx-support.patch |
Tue Apr 5 14:26:38 UTC 2011
Diffstat (limited to 'community/lmctl/mx-support.patch')
-rw-r--r-- | community/lmctl/mx-support.patch | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/community/lmctl/mx-support.patch b/community/lmctl/mx-support.patch new file mode 100644 index 000000000..9c09a9c9b --- /dev/null +++ b/community/lmctl/mx-support.patch @@ -0,0 +1,29 @@ +--- lmctl-org/src/lmctl.c 2004-09-08 07:59:55.000000000 +0000 ++++ lmctl-0.3.1/src/lmctl.c 2005-06-29 14:03:50.000000000 +0000 +@@ -99,6 +99,8 @@ + {0xc00e, "Wheel Mouse Optical", "M-BJ58", 0, 1, 0, 0}, + {0xc00f, "MouseMan Traveler", "M-BJ79", 0, 1, 0, 0}, + {0xc012, "MouseMan Dual Optical", "M-BL63B", 0, 1, 0, 0}, ++ {0xc01d, "MX510 Optical Mouse", "M-BS81A", 0, 1, 1, 0}, ++ {0xc01e, "MX518 Optical Mouse", "M-BS81A", 0, 1, 0, 0}, + {0xc024, "MX300 Optical Mouse", "M-BP82", 0, 1, 0, 0}, + {0xc025, "MX500 Optical Mouse", "M-BP81A", 0, 1, 1, 0}, + {0xc031, "iFeel Mouse (silver)", "M-UT58A", 0, 1, 0, 0}, +@@ -270,7 +272,7 @@ + exit(1); + } + +- assert ((buf [0] == 3) || (buf [0] == 4)); ++ assert ((buf [0] == 3) || (buf [0] == 4) || (buf [0] == 5) || (buf [0] == 6)); + + printf ("\tResolution (RES): %d cpi\n", (buf [0] - 2) * 400); + } +@@ -355,7 +357,7 @@ + unsigned char buf [80]; + if (!set_res) return; + +- assert ((set_res == 400) || (set_res == 800)); ++ assert ((set_res == 400) || (set_res == 800) || (set_res == 1200) || (set_res == 1600)); + if (usb_control_msg (handle, 0x40, 0x02, 0x000e, (set_res / 400) + 2, + buf, 0, TIMEOUT) != 0) { + perror("Writing to USB device"); |