mirror of
https://github.com/processing/processing4.git
synced 2026-02-22 23:05:58 +01:00
adding separate toolkit/events to hack around the erratic mouse behavior
on OS X, fixes #1626
This commit is contained in:
@@ -61,7 +61,6 @@ import com.jogamp.newt.awt.NewtCanvasAWT;
|
||||
import com.jogamp.newt.event.InputEvent;
|
||||
import com.jogamp.newt.opengl.GLWindow;
|
||||
import com.jogamp.opengl.FBObject;
|
||||
import com.jogamp.opengl.util.AnimatorBase;
|
||||
|
||||
/**
|
||||
* Processing-OpenGL abstraction layer.
|
||||
@@ -150,6 +149,7 @@ public class PGL {
|
||||
events = AWT;
|
||||
} else if (PApplet.platform == PConstants.LINUX) {
|
||||
toolkit = NEWT; // AWT extremely broken on Linux?
|
||||
events = NEWT;
|
||||
} else if (PApplet.platform == PConstants.OTHER) {
|
||||
toolkit = NEWT; // NEWT should work on the Raspberry pi
|
||||
events = NEWT;
|
||||
|
||||
Reference in New Issue
Block a user