Re: scripting mouse

From: Michele Andreoli (m.andreoli@tin.it)
Date: Mon May 06 2002 - 14:36:51 CEST


On Mon, May 06, 2002 at 07:51:38AM +0200, cglur@onwe.co.za wrote:

> Inspecting the saved chars shows (typically):
> M3..$+9%....<<-/53%<0.0.&.#.. P..@..P..@..P..@..P..@..P..@..
> Which using mc (no linux user should be without this 'killer application'
> on diskette WKS for mulinux) shows the hex value of the 60 bytes as:
> 00000 4D 33 08 01 24 2B 39 25 10 10 10 11 3C 3C 2D 2F M3..$+9%....<<-/
> 00010 35 33 25 3C 30 2E 30 10 26 10 23 19 14 09 50 00 53%<0.0.&.#...P.
> 00020 00 40 00 00 50 00 00 40 00 00 50 00 00 40 00 00 .@..P..@..P..@..
> 00030 50 00 00 40 00 00 50 00 00 40 00 00 P..@..P..@..
>
> This looks like some 'initialisation pattern' followed by a repeated pattern
> of 6 bytes: 50 00 00 40 00 00 ??

I've the protocol specs, if someone is interested.
Example: the out[0] char is used to understand the button:

         if (out0 & 0x01) -> left
         if (out0 & 0x02) -> left
         if (out0 & 0x04) -> middle button

For the mouse-move is used the bit mask 0x10 (x move) of 0x20 (y move), etc.

Michele

-- 
I keep trying to locate a meeting of Quantum Physicists. But everytime
they set a meeting time, the location changes. And vice versa -- Anonymous
---------------------------------------------------------------------
To unsubscribe, e-mail: mulinux-unsubscribe@sunsite.dk
For additional commands, e-mail: mulinux-help@sunsite.dk


This archive was generated by hypermail 2.1.6 : Sat Feb 08 2003 - 15:27:22 CET