[comp.sys.amiga.tech] sunmouse -> amiga

connyo@NFNSUN.N.TVT.SE (conny ohstrom nfn9 0752-63 012) (08/08/90)

I am trying to to interface a optical 3button Sun mouse to my amiga (A200a).
the mouse have a 3wire coord. not a standard amiga-mouse. i tried using a
software solution, using 'gameport.device' and READEVENT to get the time when
the signal goes up and down. BUT the structure 'InputEvent' seems to be not
a normal InputEvent structure. the 'timeval' struct:
struct timeval {
	ULONG tv_secs;
	ULONG tv_mics;
	}
have for some reason (performance?) been reduced to:
struct timeval {
	UWORD tv_vblanks;
	}

so when you try to get a sizeof(struct InputEvent) number of bytes from the
messageport. you got some garbage at the end. mostly its ANOTHER message!

If the 'tv_blanks' dosent have enough resolution to find what the signal means,
is there another way to measure the time between up's ands down's on i.e the
LMB on port1 ?

NOTE! I am currently not on usenet so Email directly !

exit 0 ; ---
Conny Ohstrom,Televerket nynashamn nfn9, industriv{gen 4, s-149 80 nynashamn
(sweden) usenet: connyo@nfnsun.n.tvt.se, phone: +46 752 63012