Re: Re. Mouse / typo

From: Joshua Hudson ([email protected])
Date: Mon May 06 2002 - 21:44:17 CEST


>From: Michele Andreoli <[email protected]>
>Right. It captures each mouse event.
>This can be corrected with:
>
> out0=`dd if=/dev/mouse bs=1c count=1 2>/dev/null`
> out1=`dd if=/dev/mouse bs=1c count=1 2>/dev/null`
> out2=`dd if=/dev/mouse bs=1c count=1 2>/dev/null`
>But this is only accademic!
>It is NOT possible to manage the mouse using shell script;
>only the bare event "there is a mouse activity" is interceptable.
>Another variant:
>
> # out0=`poke /dev/mouse 0`
> # out1=`poke /dev/mouse 1`
> # out2=`poke /dev/mouse 2`
>
I must disagree. Shell is "turing complete". If given proper
io (which is available by dd), it is possible to write any
program conceivable. If I recall, out0 will contain DeltaX,
out1 will contain DeltaY, and out3 is the button flags.

_________________________________________________________________
Chat with friends online, try MSN Messenger: http://messenger.msn.com

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]



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