Groups | Search | Server Info | Login | Register
| Newsgroups | comp.sys.3b1 |
|---|---|
| Date | 2021-06-18 07:29 -0700 |
| References | <be3f2a30-bc01-41f8-ad9c-f5bbe26adce5n@googlegroups.com> <14c27e1b-35fe-4b1d-aac0-9176a8f4d838n@googlegroups.com> |
| Message-ID | <4bd4b7dc-a01a-43d7-b9a6-2073d1350819n@googlegroups.com> (permalink) |
| Subject | Re: Strange mouse behavior |
| From | Bob Alexander <google@loadaccumulator.com> |
I've taken a different approach for reading the mouse. I have a UART-to-USB gadget. It's configurable for 7 data bits, 1 stop bit. I connected that to a PIC microcontroller that's inverting the UART signals, since the mouse uses an inverted UART, and connected the PIC to the mouse. When I press the left mouse button, I get (in hexadecimal) 1C 00 80. When I release the button, I get 18 00 80. For the middle button, it's 1A 00 80 and 18 00 80. Button three is 19 00 80 and 18 00 80. So that looks OK, and it matches your Arduino code in your mouse emulator. When I roll the wheels, it looks like I'm getting Move messages that cancel each other out. When I roll the Y axis wheel (I've taken the mouse ball out and I'm rolling the wheel directly) I get 18 00 81 10 00 81. Rolling the X axis doesn't send anything (though I'm pretty sure it was working 5 minutes before I wrote this; I tried blowing air at the sensors to dislodge any dust; maybe I've broken something :-( ).
Back to comp.sys.3b1 | Previous | Next — Previous in thread | Next in thread | Find similar
Strange mouse behavior Bob Alexander <google@loadaccumulator.com> - 2021-06-16 07:58 -0700
Re: Strange mouse behavior J Booth <166sunny@gmail.com> - 2021-06-17 20:24 -0700
Re: Strange mouse behavior Bob Alexander <google@loadaccumulator.com> - 2021-06-18 07:29 -0700
Re: Strange mouse behavior Bob Alexander <google@loadaccumulator.com> - 2021-06-18 08:01 -0700
Re: Strange mouse behavior J Booth <166sunny@gmail.com> - 2021-06-18 20:17 -0700
Re: Strange mouse behavior Peter Schmidt <peter@transcend.aero> - 2021-06-22 04:37 -0700
Re: Strange mouse behavior Bob Alexander <google@loadaccumulator.com> - 2021-08-05 10:41 -0700
Re: Strange mouse behavior Peter Schmidt <peter@transcend.aero> - 2021-08-06 09:23 -0700
Re: Strange mouse behavior djg@pdp8online.com (David Gesswein) - 2021-08-10 16:45 +0000
Re: Strange mouse behavior Bob Alexander <google@loadaccumulator.com> - 2021-08-10 10:02 -0700
Re: Strange mouse behavior Bob Alexander <google@loadaccumulator.com> - 2021-06-19 07:52 -0700
Re: Strange mouse behavior J Booth <166sunny@gmail.com> - 2021-06-20 21:15 -0700
csiph-web