Commit graph

61 commits

Author SHA1 Message Date
kappa1
c69a165ad1 remove debug code left in WindowsDisplay, thx to MatthiasM. 2010-11-26 20:38:39 +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
Ioannis Tsakpinis
b31603f219 Fix for grabbed mouse deltas. 2010-04-01 15:05:32 +00:00
Ioannis Tsakpinis
6998610cce Fixed mouse grabbing on secondary monitors.
Added extra device polling when vsync is enabled, to reduce input lag.
2010-03-31 23:56:24 +00:00
Brian Matzon
7bd6eb6d16 patch as per http://lwjgl.org/forum/index.php/topic,3124.0.html 2010-03-17 18:55:59 +00:00
Jeremy Booth
cb925a91e9 Try and find a sensible video driver to report on rather than assuming it's video0. 2010-03-12 20:15:38 +00:00
Brian Matzon
663a7cf235 stop updating cursor all the time and only continue animation if mouse is inside window 2009-11-26 22:44:17 +00:00
kappa1
e9e9bf7b91 FIX: Mouse Grab should now work on Windows when using Display.setParent() 2009-11-12 22:12:49 +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
Brian Matzon
c7eabcad3e fixed windows click/movement detection if drag started inside display 2009-06-03 11:08:58 +00:00
Brian Matzon
a6ae9f33b5 fix windows issue with mouse down true when released outside window 2009-05-26 20:39:23 +00:00
Elias Naur
ed1f8d70f4 Removed redundant fullscreen argument from DisplayImplementation.createWindow 2008-10-28 10:05:37 +00:00
Elias Naur
41c90bc7cc Windows: Merged native handling of undecorated and fullscreen window property 2008-10-28 09:53:16 +00:00
Elias Naur
d464876fe0 Windows: Only clip mouse to window borders if the lwjgl window is the foreground window 2008-10-27 14:04:12 +00:00
Ioannis Tsakpinis
d7ee23f9b2 Added support for OpenGL 3.0 functionality
Added support for OpenGL 3.0 context creation (MAJOR/MINOR versions, DEBUG mode, FORWARD_COMBATIBLE mode)
Added support for OpenGL 3.0 context sharing
Added support for OpenGL 3.0 extension detection
Improved support for floating point PixelFormats (ARB_color_buffer_float)
Added support for packed floating point PixelFormats (EXT_packed_float)
Added support for sRGB PixelFormats (ARB_framebuffer_sRGB)
Added support for pseudo-FORWARD_COMBATIBLE mode (deprecated functions not loaded)
Added support for EXT_direct_state_access
2008-08-19 16:46:03 +00:00
Elias Naur
9293ee4073 Windows: Split WindowsDisplay.nDestroyWindow into nReleaseDC and nDestroyWindow 2008-05-05 17:24:42 +00:00
Elias Naur
5e06f19944 Windows: Generalized WindowsDispaly.nCreateWindow 2008-05-05 16:46:16 +00:00
Elias Naur
b6b83936ac Windows: Clean up window in case of exception thrown from WindowsDisplay.createWindow 2008-05-02 11:05:49 +00:00
Elias Naur
b11fcc99f6 Windows: Moved pixel format logic from WindowsDisplayPeerInfo.initDC to WindowsDisplay.createWindow 2008-05-01 09:55:54 +00:00
Elias Naur
0a3bf6e075 Windows: Moved icon handles to java 2008-05-01 09:20:57 +00:00
Elias Naur
bcb909f5a9 Windows: Moved hwnd and hdc to java 2008-04-30 16:40:14 +00:00
Elias Naur
1006aed308 Windows: Made WindowsDisplayPeerInfo take hwnd and hdc arguments 2008-04-30 16:01:25 +00:00
Elias Naur
2420133bb9 Windows: Moved child window style selection to java 2008-04-30 15:29:39 +00:00
Elias Naur
657bd156e2 Windows: Removed directinput files, since they are now unused. Fixed headers build.xml target 2008-04-10 20:47:29 +00:00
Elias Naur
1a9bed90ed Windows: When parented, take focus on mouse click 2008-04-09 18:25:30 +00:00
Elias Naur
e4d35cdb0d Windows: Use current Mouse.isGrabbed() when determining grab status 2008-04-08 11:21:57 +00:00
Brian Matzon
bb16ec7492 updated and added license where needed 2008-04-07 18:36:09 +00:00
Elias Naur
97ebcea9c8 Windows: Improved focus handling when Display.getParent() != null 2008-04-07 15:33:34 +00:00
Elias Naur
3948769802 Windows: Implemented Display.setParent support 2008-04-07 10:18:09 +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
Elias Naur
bc33b3c4d5 Windows: Moved Display.setIcon logic to java 2008-04-01 20:45:24 +00:00
Elias Naur
e448bb0c29 Removed OS message polls from mouse and keyboard poll() and read(), since they can be quite expensive 2008-01-19 08:49:10 +00:00
Elias Naur
4bf0703eb1 Windows: Pulled DefWindowProc calling to java side 2007-12-13 09:29:36 +00:00
Elias Naur
1c935179f3 Windows: Don't do SYSRQ hackery on WM_SYSKEYDOWN 2007-08-17 06:14:40 +00:00
Elias Naur
c443696e24 Reverted 2877 2007-08-17 06:12:59 +00:00
Brian Matzon
26a040a7d2 handle alt+space (windows system menu) 2007-08-16 20:29:01 +00:00
Elias Naur
02d119d76e Windows: Handle WM_SYSCHAR 2007-08-16 09:46:45 +00:00
Elias Naur
9851b06009 Windows: Make cursor visible when grabbed and not focused 2007-08-16 08:38:20 +00:00
Elias Naur
e76fd53950 Windows: Fixed cursor clipping when loosing focus 2007-08-12 23:33:25 +00:00
Elias Naur
7a49d5ce8f Windows: Mapped VK_SNAPSHOT to KEY_SYSRQ and added workaround to a windows bug where WM_KEYDOWN is never generated for VK_SNAPSHOT 2007-07-29 19:43:36 +00:00
Elias Naur
3f21f95b2f Windows: Don't be too aggressive in clipping the cursor. Fixes a problem where the window is moved out of the screen when clicking the title bar while having the mouse grabbed 2007-07-28 21:19:58 +00:00
Elias Naur
8bb3e5aec0 Windows: Removed an unused parameter from WindowsDisplay.clipCursor 2007-07-28 20:46:17 +00:00
Elias Naur
2d436e3231 Windows: Fix repeated character codes 2007-05-31 08:52:55 +00:00
Elias Naur
fc759e6192 Implemented Keyboard.enableRepeatEvents(), Keyboard.areRepeatEventsEnabled() and Keyboard.isEventRepeat() to control repeat event reporting. Added repeat key test to KeyboardTest 2007-05-13 22:01:48 +00:00
Elias Naur
649822f65b Windows: Use TranslateMessage and WM_CHAR to receive character input instead of manual translation. This change fixes composed characters. 2007-04-24 14:41:17 +00:00
Elias Naur
010d6582c7 Windows: Call default handler on key events 2007-04-24 14:13:42 +00:00
Elias Naur
13cec51058 Windows: Convert WindowsKeyboard to use windows messages instead of DirectInput. 2007-04-24 13:40:13 +00:00
Elias Naur
23701fdf75 Windows: Remove dependency on DirectInput for WindowsMouse used by WindowsDisplay. Keyboard conversion coming up. Reasons:
1. DirectInput is deprecated (http://en.wikipedia.org/wiki/DirectInput). Specifically, Microsoft recommends using regular windows messages for keyboard and mouse input.
2. Not using DirectInput enable us to use the Raw Input JInput plugin to access multiple mice (and keyboards).
3. We're already using windows messages for features DirectInput never supported, so by removing DirectInput dependency, we get rid of some special case code.
4. When we're only using windows messages for input, we're (theoretically) more compatible than with a dependency on a properly working DirectInput.
2007-04-24 09:30:03 +00:00
Elias Naur
3899e6828f Windows: Correct testing of wParam when a WM_SYSCOMMAND is received 2007-03-30 19:35:37 +00:00