Detecting mouse right click

All graphical and user interfaces problems
Post Reply
rene
Posts: 5
Joined: Wed Nov 26, 2014 10:51 am

Detecting mouse right click

Post by rene »

For mouse events, notifiers op field accept values as pressed, released, and so on. I am looking for an op value for rightClicked. e.g. I need to distinguish between left click and right click on mouse buttoms. :?:
Greetings: René.
Josef Templ
Posts: 262
Joined: Tue Sep 17, 2013 6:50 am

Re: Detecting mouse right click

Post by Josef Templ »

You could look for the Controllers.popup modifier in Controllers.TrackMsg etc.
Under Windows, the right mouse button is used for popping up things.
On other platforms this may be different, e.g. on a MacOS/wine platform where you have only a single mouse button.
The popup modifier will be available as some other mouse/key combination.

If you want to access platform specific information directly you would have to import HostPorts,
where there are the platform-specific definitions of the three mouse buttons.

The help text 'Platform-Specific Issues' contains the table for Windows.

- Josef
Post Reply