Page 1 of 1

Detecting mouse right click

Posted: Thu Aug 09, 2018 3:20 am
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é.

Re: Detecting mouse right click

Posted: Thu Aug 09, 2018 9:26 am
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