Groups | Search | Server Info | Login | Register


Groups > comp.sys.3b1 > #643

Re: Strange mouse behavior

X-Received by 2002:a37:a703:: with SMTP id q3mr9632988qke.269.1624026584689; Fri, 18 Jun 2021 07:29:44 -0700 (PDT)
X-Received by 2002:a25:2d6c:: with SMTP id s44mr12516014ybe.126.1624026584523; Fri, 18 Jun 2021 07:29:44 -0700 (PDT)
Path csiph.com!news.swapon.de!news.uzoreto.com!tr2.eu1.usenetexpress.com!feeder.usenetexpress.com!tr1.iad1.usenetexpress.com!border1.nntp.dca1.giganews.com!nntp.giganews.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups comp.sys.3b1
Date Fri, 18 Jun 2021 07:29:44 -0700 (PDT)
In-Reply-To <14c27e1b-35fe-4b1d-aac0-9176a8f4d838n@googlegroups.com>
Injection-Info google-groups.googlegroups.com; posting-host=146.168.56.27; posting-account=-FA2NgoAAAAbum8iVMLKpECfA6Xb4lj0
NNTP-Posting-Host 146.168.56.27
References <be3f2a30-bc01-41f8-ad9c-f5bbe26adce5n@googlegroups.com> <14c27e1b-35fe-4b1d-aac0-9176a8f4d838n@googlegroups.com>
User-Agent G2/1.0
MIME-Version 1.0
Message-ID <4bd4b7dc-a01a-43d7-b9a6-2073d1350819n@googlegroups.com> (permalink)
Subject Re: Strange mouse behavior
From Bob Alexander <google@loadaccumulator.com>
Injection-Date Fri, 18 Jun 2021 14:29:44 +0000
Content-Type text/plain; charset="UTF-8"
Content-Transfer-Encoding quoted-printable
Lines 17
Xref csiph.com comp.sys.3b1:643

Show key headers only | View raw


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 | NextPrevious in thread | Next in thread | Find similar


Thread

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