Kahmul / SoulsSpeedruns-Save-Organizer

A tool designed to manage savefiles for the Souls series, Sekiro and Elden Ring.
http://soulsspeedruns.com
75 stars 26 forks source link

Add right mouse button support for Linux #17

Open veeenu opened 5 months ago

veeenu commented 5 months ago

This PR adds the isPopupTrigger check to the mousePressed event as well, allowing Linux to be supported.

According to this and this, and perfectly in line with the Java motto "build once, run everywhere", Windows will report that isPopupTrigger is true on right click in the mouseReleased event but not in mousePressed, and Linux will do the polar opposite.

The official Oracle tutorial processes the flag in both handlers, so this should be fine.