Path: utzoo!utgpu!news-server.csri.toronto.edu!rutgers!mit-eddie!uw-beaver!ubc-cs!horsch From: horsch@cs.ubc.ca (Michael Horsch) Newsgroups: comp.sys.atari.st.tech Subject: Re: Reading both buttons from Eventmulti Message-ID: <10330@ubc-cs.UUCP> Date: 3 Nov 90 18:45:37 GMT References: <9479@jarthur.Claremont.EDU> <3209@medusa.informatik.uni-erlangen.de> Sender: news@cs.ubc.ca Followup-To: comp.sys.atari.st.tech Distribution: comp.sys.atari.st.tech Organization: University of British Columbia, Vancouver, B.C., Canada Lines: 49 In article <3209@medusa.informatik.uni-erlangen.de> csbrod@medusa.informatik.uni-erlangen.de (Claus Brod ) writes: :dcrevier@jarthur.Claremont.EDU (Dan Crevier) writes: : :>I remember a while ago people were discussing how to get an event from the :>right button _or_ the left button. : :One method - undocumented though, but valid for all TOS/GEM versions - :is to add 256 to the number of clicks waited for. This negates the condition :for a return from evnt_multi due to clicks. Example: : : mstate = 0 : mclicks = 256+2 : mbuttons = 3 : :This means: Wait for 'NOT both buttons released' = 'One button clicked'. : :I know this is undocumented stuff but _very_ useful. And I would love it :if Mr Pratt or someone else at ATARI could promise us that this feature :will stay. PLEASE Mr Pratt - do us a favour. The only other way I know :of something like selective mouse click waiting can be done is linking :into the mouse vectors and - whenever the right button is clicked - :pretending that it is indeed the left one. But this causes much trouble :everywhere, and it is not even completely legal - after all, you have :to use those VDI mouse movement vector exchange routines that are :reserved for AES use only. So what's wrong with alternating the value of mbuttons in the loop containing event_multi()? On each pass through the loop, check for only one button, and at the end of the loop change the value of mbuttons to the other mouse button (ex-or mbuttons with 3). Easy. This is completely legal, maintains consistency and context, and it even works. I've used it myself. I can't think of any reason that this idea might interfere with any other legal use of AES stuff. :---------------------------------------------------------------------- :Claus Brod, Am Felsenkeller 2, Things. Take. Time. :D-8772 Marktheidenfeld, West Germany (Piet Hein) :csbrod@medusa.informatik.uni-erlangen.de :---------------------------------------------------------------------- Mike -- Michael C. Horsch Dept. of Computer Science, horsch@cs.ubc.ca University of British Columbia