Detecting mouse right click

All graphical and user interfaces problems

Detecting mouse right click

Postby rene » Thu Aug 09, 2018 3:20 am

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é.
Posts: 5
Joined: Wed Nov 26, 2014 10:51 am

Re: Detecting mouse right click

Postby Josef Templ » Thu Aug 09, 2018 9:26 am

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
Josef Templ
Posts: 244
Joined: Tue Sep 17, 2013 6:50 am

Return to GUI problems

Who is online

Users browsing this forum: No registered users and 1 guest