Path: utzoo!attcan!uunet!husc6!bunny!hor-res!berry From: berry@hor-res.UUCP (No comment) Newsgroups: comp.sys.amiga Subject: Re: Reading the gameport.device Message-ID: <225@hor-res.UUCP> Date: 16 Jun 88 22:33:42 GMT References: <8806151701.AA08881@jade.berkeley.edu> Organization: Horizon Research, Waltham MA Lines: 32 In article <8806151701.AA08881@jade.berkeley.edu>, BBOURBIN@UMDD.BITNET (Brett S Bourbin) writes: > > Can I use the GetMsg() call, since it will return a zero if there is no > messages waiting, and if I get a result on the first call to the routine, > do more until I get a zero? I want to do this because I only need the > latest event. Is this the best way of doing what I want, or should I do > a CheckIO() call and if I get a non-zero return then do a GetMsg()? I believe you can use either one, as long as you specify the right args. Since you started with a SendIO (?? maybe DoIO ??) you can use CheckIO to see if a message came back, and GetMsg to remove it. Alternately use GetMsg and check for a non null return. > > Now about the triggers- I set the mouse to report movements >= 2 in any > direction, also for all up and down mouse buttons. Can I set the timeout > value in the trigger structure to some value so it will never timeout? I Set them to zero. A time of Zero means infinity. > > Thanks for any help you may lend. > No prob. -- -Steve Berry- ...!bunny!hor-res!berry "Dare to be gorgeous and unique. But don't ever be cryptic or otherwise Unfathomable. Make it unforgettably great." Intuition Reference Manual, pg 231.