🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.atari.st
Article #38212

Mouse Buttons: how do you receive both using evnt_multi() ??

#38212
From: CrackerJack
Date: Mon, 24 Apr 1989 20:55
27 lines
1620 bytes
I want to receive both mouse buttons using evnt_multi().
The Atari Doc say that for evnt_button() that the parm for the mouse
buttons you're waiting for is a bit mask with the left button as 
0x0001 and the right as 0x0002. Also they say that the button state
(up/down) also uses the same bit positions so that:

breturn = evnt_button( 1, 0x3, 0x3, &mx, &my, &buttons, &kstate );

says to me wait for one click of either left or right mouse buttons.
Now evnt_multi() says it uses the definition from evnt_button().

YET...Atari Canada Newletter V1 #3 (yes they did once exist and
everytime I call Julius at Atari Canada he says he's preparing the 
next release, the next newsletter will most likely be a book :) on
the last page mentions Right Mouse Button Handling and that I'm 
suppose to tweek vex_butv() to setup my own handler for button changes. 

...sigh...

Well how do I get both mouse buttons?

- Ant
   achowe@tiger.waterloo.edu      |  "Murdered by pirates is good."
 __                    _          |    - The Princess Bride (movie)
/   _  _  _ |/ _  _    | _  _ |/  |
\__| `<_\<_ |\|= | ` \_/<_\<_ |\  |                        disclaimer...
Technical Details
Message-ID: <13446@watdragon.waterloo.edu>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!watmath!watdragon!tiger!achowe

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!watmath!watdragon!tiger!achowe
From: achowe@tiger.waterloo.edu (CrackerJack)
Newsgroups: comp.sys.atari.st
Subject: Mouse Buttons: how do you receive both using evnt_multi() ??
Message-ID: <13446@watdragon.waterloo.edu>
Date: 24 Apr 89 20:55:21 GMT
Sender: daemon@watdragon.waterloo.edu
Reply-To: achowe@tiger.waterloo.edu (CrackerJack)
Distribution: world
Organization: U. of Waterloo, Ontario
Lines: 27