Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!wuarchive!zaphod.mps.ohio-state.edu!sol.ctr.columbia.edu!ira.uka.de!fauern!fauern!csbrod From: csbrod@medusa.informatik.uni-erlangen.de (Claus Brod ) Newsgroups: comp.sys.atari.st.tech Subject: Re: Reading both buttons from Eventmulti Message-ID: <3209@medusa.informatik.uni-erlangen.de> Date: 2 Nov 90 07:48:51 GMT References: <9479@jarthur.Claremont.EDU> Organization: CSD, University of Erlangen, W-Germany Lines: 33 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. I wasn't paying attention then, but now >I have found I want to do that, and I can only seem to read events from both >buttons pressed together. I think I remember the solution being simple. >Could someone post the solution? 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. ---------------------------------------------------------------------- Claus Brod, Am Felsenkeller 2, Things. Take. Time. D-8772 Marktheidenfeld, West Germany (Piet Hein) csbrod@medusa.informatik.uni-erlangen.de ----------------------------------------------------------------------