PDA

View Full Version : a way to query which mouse button is pressed.


jdexforwords
03-01-2007, 07:07 AM
Is there any way that I can query which mouse button, either RMB, MMB or LMB, was clicked when UI button clicked event is occurred?

thanks.

jdexforwords
03-02-2007, 05:55 AM
bump. anybody?

VFXartist
03-13-2007, 01:37 AM
I want to know the same thing.

Robert Bateman
03-13-2007, 11:10 AM
yes and no. You can't poll the input directly, but you can use the draggerContext mel command to create a new script based tool that can query the mouse status. Obviously means you have to set Maya to use your script tool, so it might not be quite what you are after....

CGTalk Moderation
03-13-2007, 11:10 AM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.