diff options
author | Kenneth Russel <[email protected]> | 2009-01-05 21:45:45 +0000 |
---|---|---|
committer | Kenneth Russel <[email protected]> | 2009-01-05 21:45:45 +0000 |
commit | 8d38222fc13c1e3f42ee0c0afb193e517749e94e (patch) | |
tree | 14f09bdf37173b6063622c5c44f1f5162795fd8c /src/classes/com/sun/javafx/newt/InputEvent.java | |
parent | 5234bcafd962ac17c56162473acd72e0804911fa (diff) |
Native (non-AWT) port of Newt to Mac OS X using Cocoa. Most
functionality (mouse click, mouse motion, mouse dragging, keyboard
events) appears to be working. Currently works with the Apple JRE and
requires the JVM command-line arguments -XstartOnFirstThread and
-Djava.awt.headless=true . Will work with the standalone SoyLatte JRE
pending additional launcher changes. Tested with Angeles demo and
various JavaFX demos.
Added -Dnewt.ws.name=AWT option to force the use of the AWT port of
Newt on any supported platform.
Known bugs:
- While resizing a window or dropping down a menu, the application
will hang. This is due to how the event processing is currently
done in Newt (via Window.dispatchMessages()) and how Mac OS X
deals with resize operations (by pushing a nested event loop into
which we have no visibility). There are at least a couple of
solutions. One would be to preserve the current API semantics but
use a Newt Launcher class to move main() on to a different thread,
saving the primordial thread for [NSApplication run]. Another
would be to move Newt (and, by association, the JavaFX runtime
code) to a callback model like GLUT.
- Command-Q and the Quit menu option do not yet properly exit the
application.
- The coordinates for the WINDOW_MOVED event are wrong.
Added the rest of the VK_ constants to the KeyEvent class. Made
preliminary changes to support the SoyLatte JRE. Worked around
initialization order issues with Fmod.
git-svn-id: file:///usr/local/projects/SUN/JOGL/git-svn/svn-server-sync/jogl/branches/JOGL_2_SANDBOX@1838 232f8b59-042b-4e1e-8c03-345bb8c30851
Diffstat (limited to 'src/classes/com/sun/javafx/newt/InputEvent.java')
0 files changed, 0 insertions, 0 deletions