Commit graph

54 commits

Author SHA1 Message Date
Elias Naur
4c9edffc85 Linux: Remove 32x32 icons size check, since other sizes seem to work alright. Document the fact that Display.setIcon use the icons from the icon array in order of decreasing preference 2006-07-22 21:30:31 +00:00
Elias Naur
af9e73ed11 Linux: Made most fields in LinuxDisplay non-static 2006-07-08 22:17:09 +00:00
Elias Naur
4e68c787b3 Added Keyboard.getEventNanoseconds() and Mouse.getEventNanoseconds() 2006-07-04 17:07:13 +00:00
Elias Naur
cfe79394e6 Linux: Fixed privileged property access in LinuxDisplay.java 2006-07-04 10:52:36 +00:00
Elias Naur
26c6de6363 Implemented variable sized events in preparation of timestamped input events 2006-07-03 23:16:26 +00:00
Elias Naur
3902c69c7a Now that no native side event_queue_t type is used anymore, convert input read() semantics to use normal nio Buffer semantics - that is, move the position when writing events 2006-07-03 19:09:47 +00:00
Elias Naur
b20423aa62 Fixed comment 2006-07-03 18:56:15 +00:00
Elias Naur
a417b8f15c Linux: Moved Display state booleans to java side 2006-07-03 18:33:25 +00:00
Elias Naur
2f957f816d Linux: Fix multiple calls of setIcon by creating copies of icon data instead of converting data in-place 2006-07-03 18:18:27 +00:00
Elias Naur
cbe41294a5 Linux: Moved most input related stuff from native to java 2006-07-03 18:07:44 +00:00
Elias Naur
48cf79e55f Linux: Fixed Display.setIcon memory leak. 2006-06-30 18:56:37 +00:00
Elias Naur
6cf49718db Windows: LWJGL didn't work well with jinput, but compatibility could be greatly improved if LWJGL used DirectInput 8 (like jinput). This can't be done unconditionally, since we need the DX3 support for older versions of windows. So, I've moved most Mouse and Keyboard stuff from native to java side and generalized DirectInput access through an abstract base class, with two concrete subclasses, one for dx3 and one for dx8. 2006-06-26 13:50:48 +00:00
Elias Naur
9f41ecaedb Removed Keyboard.isStateKeySet() - it is easily replaced by Toolkit.getLockingKeyState() 2006-06-10 20:42:26 +00:00
Caspian Rychlik-Prince
3548ac989c Removed superfluous imports 2006-02-27 19:55:43 +00:00
Elias Naur
bf84c8b361 Linux: Fixed resetDisplayMode in case XRandr is used and the first reported mode is not the initial mode 2006-01-31 12:48:46 +00:00
Elias Naur
3b8b751935 Linux: Fixed resetDisplayMode in case XRandr is used and the first reported mode is not the initial mode 2006-01-31 12:31:41 +00:00
Elias Naur
033dc40a89 Converted System.getenv() to Boolean.getBoolean to please the blackdown VM 2006-01-04 07:36:08 +00:00
Elias Naur
2bc0988c98 Linux: More native code refactoring 2005-11-22 13:53:13 +00:00
Elias Naur
7469d59dbf Linux: Removed current_* mode cache from display.c 2005-11-22 11:23:37 +00:00
Elias Naur
e2ee957f0b Linux: let exceptions from display.c propagate to LinuxDisplay.java 2005-11-21 22:21:29 +00:00
Elias Naur
b6dd18fc7d Linux: Moved saved display mode from C to LinuxDisplay.java 2005-11-21 21:59:11 +00:00
Elias Naur
61bfceaaed Linux: Moved a display connection to java 2005-11-21 16:50:11 +00:00
Elias Naur
debaaf6538 Linux: Move gamma ramps to java code 2005-11-21 16:32:34 +00:00
Elias Naur
6e5ed9d1ff Linux: Moved a display connection creation to java 2005-11-21 13:32:52 +00:00
Elias Naur
5af5828dc6 Linux: Moved display mode extension and window state handling up into java code 2005-11-21 13:22:52 +00:00
Elias Naur
56a56503d6 Linux: Don't assume JAWT Lock()/Unlock() are re-entrant, fixing a hang with GCJ 4 2005-10-23 19:41:09 +00:00
Kevin Glass
ce83d997bf Fix size check bug in icon setting. Divide by four to get the size of the buffer in pixels. 2005-07-10 20:15:55 +00:00
Kevin Glass
94e0bb30c0 Added methods to set the window icon. MacOS implementation added using AWT images. 2005-07-05 21:54:12 +00:00
Caspian Rychlik-Prince
200ed3792a Cleanup of unused imports 2005-05-04 20:59:44 +00:00
Elias Naur
e492cd240b Linux: try to work around crash on opengl library unload 2005-04-25 07:47:28 +00:00
Elias Naur
a1e593cee0 Linux: Fixed crash 2005-04-25 07:26:07 +00:00
Elias Naur
61ddd625df Added Mouse.setCursorPosition(x, y) 2005-04-12 11:45:06 +00:00
Brian Matzon
ad8d7676c2 moved Sys.log to LWJGLUtils and renamed property to org.lwjgl.util.Debug 2005-03-29 18:09:33 +00:00
Elias Naur
c9fc024fa4 Linux: Moved display connection reference count to java. Linux: Load OpenGL library before opening display to work around a crash in NVIDIA drivers. 2005-03-29 11:31:22 +00:00
Elias Naur
bdcb68a582 Linux: Handle different GLX capabilities on different screens 2005-02-24 10:44:34 +00:00
Elias Naur
d28a2ad61c Clean up java code 2005-02-23 11:45:25 +00:00
Elias Naur
3085702a38 Mac OS X port of the refactoring. Linux and Win32 fixes. 2005-02-23 11:11:08 +00:00
Elias Naur
8bb10a1372 Linux: moved Cursor handle allocation to native side 2005-02-21 15:56:53 +00:00
Elias Naur
62e561cddf Win32 part of refactor and AWTGLCanvas 2005-02-21 14:46:47 +00:00
Elias Naur
fb5d89599b Linux support for AWTGLCanvas. Big refactor of context specific code into Context.java that is now shared between Display, Pbuffer and AWTGLCanvas. (Win32 and Mac OS X is now broken while I implement the same changes on those platforms) 2005-02-20 11:24:22 +00:00
Caspian Rychlik-Prince
a8fcd3edde Fixed AWT dependency. 2005-01-20 22:51:28 +00:00
Elias Naur
66181d1486 Delegate Sys platform dependent methods into SysImplementation instances 2005-01-18 20:23:05 +00:00
Elias Naur
f8ae518d0f Linux:Moved NUM_BUTTONS up into java 2005-01-18 17:25:34 +00:00
Elias Naur
f4180a214d Cleaned up Mouse and Keyboard now that buffering and translation are always enabled 2005-01-18 16:42:31 +00:00
Elias Naur
fbcd19698b Moved Mouse.getNativeCursorCaps() to Cursor.getCapabilities()
Renamed Pbuffer.getPbufferCaps() to Pbuffer.getCapabilities()
2005-01-18 12:34:36 +00:00
Elias Naur
ccd37148e1 Linux: Implemented AWT synchronization through JAWT. Needed because Xlib is not guaranteed thread safe 2005-01-11 15:22:12 +00:00
Elias Naur
925139bc7d Added a Pbuffer argument to the Pbuffer constructor to enable sharing between pbuffers when the display is not created. Moved Pbuffer native methods into DisplayImplementation. 2005-01-11 13:53:12 +00:00
Elias Naur
4def20c892 Linux: Moved trivial methods from native to java 2005-01-06 14:03:48 +00:00
Ioannis Tsakpinis
83dd8b6bbc Code cleanup 2004-11-25 22:31:38 +00:00
Elias Naur
2577ffd377 Split up Sys.openURL into the platform specific DisplayImplementation 2004-11-22 21:22:30 +00:00