You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
However as soon as we want to use the library with another toolkit (I was trying LWJGL and GLFW), and only under MacOS, no event are issued until one create a JFrame (or any Swing or AWT component) before using the library. This is problematic to use two frameworks at the same time.
Indeed an "AWT event dispatch thread" must be running for the Cocoa provider to work. This is needed since in "CocoaAccess.java" a call to SwingUtilities.isEventDispatchThread() and/or SwingUtilities.invokeLater() is used to schedule level events. When not using these toolkits, disabling the use of these SwingUtilities works very well and remove the dependency to these toolkits. If I understand well the code, the use of invokeLater() is however needed when working with AWT/Swing. Could this be activated only optionally ?
Thanks
The text was updated successfully, but these errors were encountered:
First of all thanks a lot for this library.
All works well when working with Swing or AWT.
However as soon as we want to use the library with another toolkit (I was trying LWJGL and GLFW), and only under MacOS, no event are issued until one create a JFrame (or any Swing or AWT component) before using the library. This is problematic to use two frameworks at the same time.
Indeed an "AWT event dispatch thread" must be running for the Cocoa provider to work. This is needed since in "CocoaAccess.java" a call to SwingUtilities.isEventDispatchThread() and/or SwingUtilities.invokeLater() is used to schedule level events. When not using these toolkits, disabling the use of these SwingUtilities works very well and remove the dependency to these toolkits. If I understand well the code, the use of invokeLater() is however needed when working with AWT/Swing. Could this be activated only optionally ?
Thanks
The text was updated successfully, but these errors were encountered: