Path: utzoo!utgpu!news-server.csri.toronto.edu!rutgers!att!pacbell.com!tandem!zorch!amiga0!mykes From: mykes@amiga0.SF-Bay.ORG (Mike Schwartz) Newsgroups: comp.sys.amiga.programmer Subject: Re: RMB question Message-ID: Date: 11 May 91 19:27:37 GMT References: <1991May8.155337.5049@zorch.SF-Bay.ORG> <21412@cbmvax.commodore.com> <1991May11.010739.24499@zorch.SF-Bay.ORG> Organization: Amiga makes it possible Lines: 56 In article <1991May11.010739.24499@zorch.SF-Bay.ORG> mike@zorch.SF-Bay.ORG (Mike Smithwick) writes: >In article <21412@cbmvax.commodore.com> peter@cbmvax.commodore.com (Peter Cherna) writes: >>In article <1991May8.155337.5049@zorch.SF-Bay.ORG> mike@zorch.SF-Bay.ORG (Mike Smithwick) writes: ><>[] ><> ><>Is there an easy and legal way to catch a right-mouse button event under ><>intuition while still having access to the menus (since RMBTRAP traps ><>the right-button before the menu stuff could get it). >< >< ><>mike >< >< Peter ><-- > >Trouble with MENUVERIFY is that I get only a single message. I need to know >both MENUDOWN and MENUUP events which MENUVERIFY won't give. > >mike >-- >"There is no problem to big that can't be solved with high explosives"-Rush > >Mike Smithwick - ames!zorch!mike > You can use: ; POTGOR equ $dff016 _RightMouseButton btst #2,POTGOR ; right mouse button status beq .rmbDown .rmbUp moveq #0,d0 rts .rmbDown moveq #-1,d0 rts to check for the right mouse button. I know about using hard coded numbers instead of labels, but remember that this code is just for illustration purposes (i.e. code it as YOU see fit). You would use a routine like this after getting your MenuVerify and only when you know that yours is the front screen. This interferes in NO way with the OS. -- **************************************************** * I want games that look like Shadow of the Beast * * but play like Leisure Suit Larry. * ****************************************************