Blitz (419/640)

From:David McMinn
Date:14 Sep 99 at 16:46:48
Subject:Re: Mouse+Mouse = 2 Mice

Hi Rob,

A quick flick through the ever-so-handy Blitz list archives on Aminet
and I found this stuff. This is just snipped from a message by Sami.
(It was in the February archive, thank god I guesses March to start
at I would have been there forever ;). I have no idea where the 3D
things came from, but it looks like you could just delete them.

-------------------

Well these are word addresses so you should read these as words!

joy0dat $dff00a port 0 (the one you normally stick your mouse)
joy1dat $dff00c port 1 (the joyjoy port ;)

So the reading will be done like this:

; a.w is temporary variable to store the input

x.b=3D0 ; current X counter value
y.b=3D0 ; current Y counter value

xx.b=3D0 ; previous X counter value
yy.b=3D0 ; previous Y counter value

mx.w=3D0 ; pointer X cordinate
my.w=3D0 ; pointer Y cordinate

a.w=3Dpoke.w($dff00a)
x.b=3D(a lsr 8)&$ff
y.b=3Da&$ff

if x.b<>xx.b
temp.b=3Dxx.b
x.b-xx.b
xx.b=3Dtemp.b
mx.w+x.b
endif

if y.b<>yy.b
temp.b=3Dyy.b
y.b-yy.b
yy.b=3Dtemp.b
my.w+y.b
endif



|) /\ \/ ][ |) |\/| � |\/| ][ |\| |\| | dave@satanicdreams.com
http://members.xoom.com/David_McMinn | ICQ=16827694
'You don't need to see my goddamn identification, 'cause these ain't
the motherfuckin' droids you're looking for.' - Samuel L. Jackson, Jedi

---------------------------------------------------------------------
To unsubscribe, e-mail: blitz-list-unsubscribe@netsoc.ucd.ie
For additional commands, e-mail: blitz-list-help@netsoc.ucd.ie