Path: utzoo!utgpu!news-server.csri.toronto.edu!clyde.concordia.ca!uunet!tut.cis.ohio-state.edu!ucbvax!NFNSUN.N.TVT.SE!connyo From: connyo@NFNSUN.N.TVT.SE (conny ohstrom nfn9 0752-63 012) Newsgroups: comp.sys.amiga.tech Subject: sunmouse -> amiga Message-ID: <9008081305.AA10502@nfnsun.n.tvt.se> Date: 8 Aug 90 13:05:51 GMT Sender: daemon@ucbvax.BERKELEY.EDU Reply-To: connyo@nfnsun.n.tvt.se Lines: 26 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