mirror of
https://github.com/processing/processing4.git
synced 2026-02-18 04:45:37 +01:00
Fix for mouseButton not recording correctly:
http://code.google.com/p/processing/issues/detail?id=1464
This commit is contained in:
@@ -3251,6 +3251,13 @@ public class PGL {
|
||||
peButton = PConstants.RIGHT;
|
||||
}
|
||||
|
||||
if (PApplet.platform == PConstants.MACOSX) {
|
||||
//if (nativeEvent.isPopupTrigger()) {
|
||||
if ((modifiers & InputEvent.CTRL_MASK) != 0) {
|
||||
peButton = PConstants.RIGHT;
|
||||
}
|
||||
}
|
||||
|
||||
float peAmount = peAction == MouseEvent.WHEEL ?
|
||||
nativeEvent.getWheelRotation() :
|
||||
nativeEvent.getClickCount();
|
||||
|
||||
Reference in New Issue
Block a user