check on how modifiers are used in FX and GL, should be all set

This commit is contained in:
Ben Fry
2021-07-05 07:02:23 -04:00
parent 47e9afe499
commit eacaf696d4
2 changed files with 7 additions and 2 deletions
@@ -1092,7 +1092,10 @@ public class PSurfaceJOGL implements PSurface {
protected void nativeMouseEvent(com.jogamp.newt.event.MouseEvent nativeEvent,
int peAction) {
// SHIFT, CTRL, META, and ALT are identical to the processing.event.Event,
// so the modifiers are left intact here.
int modifiers = nativeEvent.getModifiers();
// Could limit to just the specific modifiers, but why bother?
/*
int peModifiers = modifiers &
(InputEvent.SHIFT_MASK |
@@ -1159,6 +1162,7 @@ public class PSurfaceJOGL implements PSurface {
protected void nativeKeyEvent(com.jogamp.newt.event.KeyEvent nativeEvent,
int peAction) {
// SHIFT, CTRL, META, and ALT are identical to processing.event.Event
int modifiers = nativeEvent.getModifiers();
// int peModifiers = nativeEvent.getModifiers() &
// (InputEvent.SHIFT_MASK |