Commit Graph

119 Commits

Author SHA1 Message Date
kappaOne d20d5546a3 Finalise implementation of HiDPI mode for OS X 2013-11-12 01:25:06 +00:00
kappaOne eb2e7176b8 Add new LWJGL API Display.getPixelScaleFactor() for use in high DPI
modes, like HiDPI retina mode on OS X.
2013-11-11 23:12:51 +00:00
kappaOne 225bd176cb Implement initial support for High DPI mode on OS X 2013-11-11 00:08:23 +00:00
kappaOne ed95cd0f27 Tweak OS X Fullscreen API mode behaviour, where available its enabled by
default now, can be disabled using the
org.lwjgl.opengl.Display.disableOSXFullscreenModeAPI switch
2013-11-10 02:51:42 +00:00
kappaOne 75fe62bbea Implement initial support for the OS X 10.7+ fullscreen mode API,
currently enabled using the VM parameter
org.lwjgl.opengl.Display.enableOSXFullscreenModeAPI
2013-11-06 23:41:16 +00:00
kappaOne 46cbd89430 Remove dependencies on AWT inside the Cursor.getMaxCursorSize() and
Cursor.getMinCursorSize() methods. Fixes a crash on OS X 10.9, thx to
nbf for finding and reporting.
2013-10-27 21:28:11 +00:00
kappaOne 8deac76a5b Update author information 2013-04-21 15:37:02 +01:00
kappaOne d462208c4c Implement AWTGLCanvas, fix initial glViewport size when using
Display.setParent
2013-03-13 00:51:32 +00:00
kappaOne e67d717c4e simplify mouse code a little 2013-02-15 21:49:19 +00:00
kappaOne 9929d0fac9 release mouse grab when destroying the Mouse or Display 2013-02-10 20:32:07 +00:00
kappaOne f6c0f17c79 Fix freeze/hang when calling AL.create() before Display.create() 2013-02-09 00:59:11 +00:00
kappaOne 4e0c593644 Tweak native cursor behaviour 2013-02-08 23:55:45 +00:00
kappaOne db4eb9c5c8 Replace AWT code for getAvailableDisplayMode and other DisplayModes
stuff to use pure native Cococa code.
2013-02-08 23:29:15 +00:00
kappaOne f6a2bc8327 Detect correctly if mouse is inside or outside the Display on
creation and resize.
2013-02-03 18:58:00 +00:00
kappaOne c328463776 Implement Cursor.destroy and release memory used by native cursors 2013-02-03 17:47:09 +00:00
kappaOne bf13ed9cc3 Restore default mouse cursor on mouse destroy 2013-02-03 16:52:45 +00:00
kappaOne a5c7ec0017 Return correct OS X Cursor.getCapabilities() value 2013-02-02 19:58:18 +00:00
kappaOne 4e1d539095 Further fix Native Mouse Cursor behaviour 2013-02-02 01:15:41 +00:00
kappaOne abeb9f389c Fix Mouse.isInsideWindow() when starting in fullscreen mode 2013-02-01 22:28:10 +00:00
kappaOne 27cfdf646e Improve native cursor behaviour 2013-01-27 23:45:08 +00:00
kappaOne 6c090f1f61 Implement Mouse.isInsideWindow() on OS X 2013-01-27 23:01:21 +00:00
kappaOne f0219aed1a Fix native cursor global handle passing 2013-01-26 22:47:36 +00:00
kappaOne 486ff0edea Added initial work towards getting native cursors working, not
implemented yet
2013-01-25 00:28:26 +00:00
kappaOne fbb490bb3a Reenable the AWT Robot for CALayer mode 2013-01-16 19:02:09 +00:00
kappaOne fc9e4f4bda Tweak CALayer mode to active correctly 2013-01-15 23:09:03 +00:00
kappaOne fe2f06f36e Implement Keyboard and Mouse input when using CALayer mode 2013-01-14 23:35:46 +00:00
kappaOne 0dda33cd2d Implement CALayer rendering, no input yet 2013-01-13 15:34:24 +00:00
kappaOne d0759e9c12 remove unneeded code in MacOSXDisplay.getPbufferCapabilities() 2012-12-25 14:14:05 +00:00
kappaOne 284f6135f3 Refactoring to prepare for implementing OS X CALayer based
Display.setParent, temporarily breaks Display.setParent on Java 7 and
Java 6 Applets.
2012-12-22 20:20:48 +00:00
kappaOne f7c64c89dc Don't use Display.setParent when fullscreen set, some refactoring 2012-12-18 22:10:44 +00:00
kappaOne 70842b92aa Implement Display.getX() and Display.getY() for OS X 2012-12-16 16:02:40 +00:00
kappaOne ccf738dfaf Implement OS X Mouse.setCursorPosition() when in fullscreen mode 2012-12-09 22:12:02 +00:00
kappaOne 07499c30dd fix default viewport size when switching to fullscreen mode 2012-12-09 16:27:19 +00:00
kappaOne 804f09da47 Fixed resizing when using Display.setParent 2012-12-03 23:04:30 +00:00
kappaOne c2159989f5 remove unused code for hiding OS menubar and dock as its no longer
needed.
2012-11-25 17:12:42 +00:00
kappaOne 7f46fb2fbd Reimplement fullscreen support, correct resizing behaviour on window
creation and to work reliably during runtime.
2012-11-25 15:07:20 +00:00
kappaOne 9931e5dbfc Fix native crash when closing the OS X Display window using the
close button
2012-11-22 22:43:43 +00:00
kappaOne 5f37b11857 just a test commit to see if git is working, will undo in next patch 2012-11-20 23:18:11 +00:00
kappa1 4f4cb832af Cleaned up code by removing unneeded java classes MacOSXFrame and MacOSXMouseEventQueue and native code by removing mouse.c 2012-11-13 21:13:11 +00:00
kappa1 7bbfcadcef fix resizing when using Display.setParent() 2012-11-11 19:03:50 +00:00
kappa1 a749ad5c10 implement missing functionality for Display.getWidth() and Display.getHeight() not updating correctly on resize 2012-11-11 18:43:14 +00:00
Brian Matzon c09f5698b4 Comitting EmuMogs 28008537/src.zip drop to branch 2012-11-01 20:54:17 +00:00
kappa1 e5ebf82c81 Added the new public API's Display.getX() and Display.getY(). Currently implemented for Linux and Mac. Windows implementation pending. 2012-02-18 16:30:38 +00:00
Ioannis Tsakpinis 41af142324 Added support for OpenGL 3.2 on MacOS X 10.7+. 2011-09-03 18:52:45 +00:00
kappa1 5949d57bb1 Implement Resizing Display API for OS X 2011-07-13 22:15:35 +00:00
kappa1 9aafabd728 Add placeholder methods for initial resizing api for the Display 2011-07-12 22:07:32 +00:00
Ioannis Tsakpinis 40cbf3e45f Added support for OpenGL ES. 2011-05-17 16:53:57 +00:00
Ioannis Tsakpinis a8bcb7fd25 Ported codebase to Java 1.5.
Misc OpenCL fixes and API improvements.
Changed fractal demo to use events/sync objects instead of cl/glFinish for synchronization. (untested)
2010-09-28 21:11:35 +00:00
Ioannis Tsakpinis 47c9991b41 Fixed ByteOrder of @Return ByteBuffers.
Cleaned up Drawable interface and introduced a reusable base implementation.
Added support for disabling runtime function checks, buffer checks and state tracking. Activated with -Dorg.lwjgl.util.NoChecks=true
2010-04-22 23:21:48 +00:00
Brian Matzon 8bd591fe5e support for tracking mouse outside window on drag, new api for checking if mouse is inside window 2009-09-12 22:15:21 +00:00
Elias Naur ed1f8d70f4 Removed redundant fullscreen argument from DisplayImplementation.createWindow 2008-10-28 10:05:37 +00:00
Elias Naur 36d9d31dab Mac OS X: Be less aggressive when grabbing mouse to allow dragging of lwjgl windows with grabbed mouse 2008-09-11 09:52:23 +00:00
Brian Matzon c6a1088a70 cleanup of imports 2008-06-05 13:36:57 +00:00
Elias Naur e584a5e0a0 Mac OS X: Worked around another Display.destroy hang when parented to an applet 2008-04-30 13:47:26 +00:00
Elias Naur 19a3f6e359 Mac OS X: Fixed a hang on Display.destroy in applets 2008-04-30 13:16:53 +00:00
Elias Naur 4e432b9e3e Added ApplejavaExtensions.jar to be able to use apple extensions without reflection 2008-04-22 16:52:16 +00:00
Brian Matzon bb16ec7492 updated and added license where needed 2008-04-07 18:36:09 +00:00
Elias Naur 428d55ed0e Mac OS X: Implemented Display.setParent support 2008-04-07 17:10:14 +00:00
Elias Naur 12a1f5e3e5 Mac OS X: Split canvas listener from MacOSXGLCanvas 2008-04-07 13:34:20 +00:00
Elias Naur c499f33bcf Added experimental Display.setParent to allow Display to be embedded in an AWT Canvas. Added basic linux implementation and test. 2008-04-06 20:56:52 +00:00
Brian Matzon 21b2cc0c21 cleaning imports 2007-10-20 21:31:52 +00:00
Elias Naur 436cd2e39c Disable MacOSXDisplay.setIcon since there are no window icons on Mac OS X 2007-07-20 21:24:03 +00:00
Elias Naur 56178d97fd Make the rest of LWJGL thread safe. No attempt have been done to make the locking minimal. Instead, one global lock is shared by Display, Mouse, Keyboard and Cursor. The lock surrounds all public methods. 2007-02-12 12:18:26 +00:00
Elias Naur d2de70f2d9 Make sure that Mouse.destroy ungrabs the cursor 2006-11-19 21:41:34 +00:00
Elias Naur 4c5a2fe644 Fixed AWTUtil.setCursorPosition. Added check to LinuxAWTInput. 2006-10-28 22:06:24 +00:00
Elias Naur d4d39bf869 Made the AWT setCursorPosition garbage free 2006-10-27 06:04:55 +00:00
Elias Naur a47e419168 Mac OS X: Moved mouse handling from MacOSXDisplay to MacOSXMouseEventQueue 2006-10-26 20:49:07 +00:00
Elias Naur 3674d843c2 Added org.lwjgl.opengl.AWTInputAdapter which enabled use of Mouse and
Keyboard with AWTGLCanvases. Programs can now avoid implementing AWT input processing and access the mouse grabbing features from both Display and AWTGLCanvas. See org.lwjgl.test.opengl.awt.AWTInputAdapterTest for an example.

Note: This commit is the linux and generic AWT imlementation and can still
change a lot while implementing windows and mac os x.
2006-10-26 20:19:40 +00:00
Elias Naur fe1693a3c9 Mac OS X: Moved registering and unregistering of AWT listeners from MacOSXDisplay to the input handlers 2006-10-26 15:03:47 +00:00
Elias Naur 9e1254f6d1 Mac OS X: Moved AWT input handling to separate AWTUtil.java 2006-10-26 14:47:02 +00:00
Elias Naur b91cfd8b60 MacOSXDisplay workaround done properly :) 2006-07-05 10:47:15 +00:00
Elias Naur f19f5cfb33 Mac OS X: Workaround a crash with applets and MacOSXDisplay 2006-07-05 09:58:48 +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 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
Elias Naur 6e6bdb1fa0 Mac OS X: Catch exceptions from getLockingKeyState 2006-06-10 19:46:28 +00:00
Elias Naur 15676f6129 Mac OS X: Implement Display.isStateKeySet() 2006-06-10 19:40:54 +00:00
Caspian Rychlik-Prince 16524516cd Tidied up unused variables, added serialVersionUIDs as appropriate,
removed a few unnecessary casts and brackets and exceptions.
2006-04-21 11:11:21 +00:00
Caspian Rychlik-Prince 3548ac989c Removed superfluous imports 2006-02-27 19:55:43 +00:00
Elias Naur e1c51385c6 Mac OS X: Added loading of a legacy native lwjgl library to support applications that need to run on Mac OS X 10.2, 10.3 and 10.4, including intel mac versions. NOTE: Intel support from the universal build is not tested, since I don\'t have acces to an intel mac. 2006-01-16 20:37:28 +00:00
Elias Naur a9bd41f12e Mac OS X: Fixed an issue where pbuffer contexts could not share with the display context. 2005-11-04 12:38:59 +00:00
Elias Naur 965b0e1ec4 MacOSX: Fix bugs in MacOSXDisplay.setIcon 2005-10-31 10:51:54 +00:00
Elias Naur 57635274d2 Mac OS X: Fetch the current viewport dimensions instead of assuming them equal to the current window size 2005-09-09 10:27:13 +00:00
Brian Matzon 1b453d6e10 use buffer.get since we dont have a backing array 2005-09-07 15:43:52 +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
Elias Naur 29a51b7cad Added doPrivileged to MacOSXDisplay.setCursorPosition() 2005-06-01 07:18:09 +00:00
Elias Naur f1705b7fde Added AccessController.doPrivileged where needed 2005-05-30 16:21:05 +00:00
Elias Naur 78e75012ba Mac OS X: Enable native cursor in Mac OS X 10.4 and later because Apple fixed the outstanding bugs 2005-05-05 11:04:17 +00:00
Caspian Rychlik-Prince 200ed3792a Cleanup of unused imports 2005-05-04 20:59:44 +00:00
Elias Naur 1c49b2f969 Mac OS X: Only use SetSystemUIMode workaround on 10.3 and lower 2005-05-03 09:08:12 +00:00
Elias Naur 019a1418c6 Mac OS X: Added a workaround for the 'white screen' problem 2005-04-28 12:55:23 +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 f9400843aa Mac OS X: getPbufferCapabilities no longer requires a current context 2005-02-24 11:09:16 +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 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 f5106d92ed Fixing Mac problems. 2005-01-22 00:34:50 +00:00
Elias Naur 9a4824e79b Mac OS X: Remove invokeAndWait stuff since AWT, unlike swing, is thread safe 2005-01-21 22:07:20 +00:00