I have been trying to see if I can distinguish which mouse button was used to
click on a button but without success. Is this possible and if so is it cross
platform?
Jim
-
James C. Wall, PhD
Professor
Department of Physical Therapy
University of South
jcwall wrote:
I have been trying to see if I can distinguish which mouse
button was used to click on a button but without success.
Is this possible and if so is it cross platform?
Yes and yes.
The mouseDown and mouseUp messages are sent with a parameter which tells
you which button was
Hi,
try passing a parameter with mouseUp / mouseDown and the doubles:
on mouseUp pBut
if pBut=1 then answer Left click
if pBut=3 then answer Right click
if pBut=2 then answer Middle click
end mouseUp
Hope that helps,
Malte
___
use-revolution mailing
Phone: (251) 434 3575
Fax: (251) 434 3822
- Original Message -
From: Malte Brill [EMAIL PROTECTED]
Date: Tuesday, December 18, 2007 1:03 pm
Subject: Re: R click vs L Click
To: use-revolution@lists.runrev.com
Hi,
try passing a parameter with mouseUp / mouseDown and the doubles
Jim,
That information gets sent as a paramter with the mouseUp and
mouseDown messages. So if you do:
on mouseUp pBtnNum
--
end mouseUp
The mouse button will be in the pBtnNum variable. 1 is left button, 2
is the middle button and 3 is right button. See the dictionary
entries for the
Subject: Re: R click vs L Click
To: How to use Revolution use-revolution@lists.runrev.com
Jim,
That information gets sent as a paramter with the mouseUp and
mouseDown messages. So if you do:
on mouseUp pBtnNum
--
end mouseUp
The mouse button will be in the pBtnNum variable. 1