Commit Graph

44 Commits

Author SHA1 Message Date
Ioannis Tsakpinis d5d9f06160 Convert local WindowsDisplay jclass reference to global. 2014-01-14 17:11:39 +02:00
Ioannis Tsakpinis 66c987f9c2 Fixed Rect/RECT conversion and added a workaround that resets the OpenGL client area when we toggle resizable after window creation. 2013-12-13 15:33:13 +02:00
Ioannis Tsakpinis c0b19b7743 Another attempt to fix focus problems with Display.setParent on Windows:
- Reverted to WS_CHILD in window flags.
- Added WM_MOUSEACTIVATE handling: Focus the display + return MA_NOACTIVATE.
- Removed unnecessary appActivate calls in WM_ACTIVATE. We don't receive WM_ACTIVATE with WS_CHILD and the focus events do the job just fine.
- Detect parent window focus in update and force focus the display. This is useful when we alt-tab to the parent window and we don't receive any events.
2013-04-17 22:19:38 +03:00
Ioannis Tsakpinis 5400bb27db Misc fixes and improvements on Windows:
- Cleaned up cl flags and enabled parallel compilation. Native compilation
  is now multiple times faster.
- Fixed all /W3 compilation warnings.
- Changed window flag from WS_CHILDWINDOW to WS_POPUP when Display.setParent
  is used, in an attempt to fix focus-related issues.
2013-01-29 22:53:11 +02:00
Brian Matzon b4cc6176e7 fixed issue with win32 get x/y returning client-area coords 2012-07-14 23:29:21 +00:00
Ioannis Tsakpinis 67945fe317 Added unicode support on Windows.
Fixed AL and GLES native stub bindings.
Replaced many GetStringNativeChars usages with a Java implementation.
2011-08-16 22:17:32 +00:00
Brian Matzon 087d0f4ba9 Initial stab at win32 resize api 2011-07-21 22:52:16 +00:00
Ioannis Tsakpinis 40cbf3e45f Added support for OpenGL ES. 2011-05-17 16:53:57 +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 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 7c9c64bf8e support for alpha blended icons on win32 2009-07-07 19:47:55 +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 f9b6ab7c58 add missing include to get __TrackMouseEvent exported 2009-05-27 08:04:39 +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 c8990c0915 Windows: Fixed pointer size compiler warning 2008-11-22 15:00:44 +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
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 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 8b0b1b8b63 Added platform specific getJNIVersion implementations 2008-04-30 14:58:47 +00:00
Elias Naur cf6ade2b72 Windows: Fixed compile error 2008-04-29 18:37:51 +00:00
Elias Naur 97405f860f Windows: Added error handling to nCreateWindow 2008-04-29 18:32:08 +00:00
Brian Matzon 175642d593 updated and added license where needed 2008-04-07 18:42:36 +00:00
Elias Naur 3948769802 Windows: Implemented Display.setParent support 2008-04-07 10:18:09 +00:00
Elias Naur bc33b3c4d5 Windows: Moved Display.setIcon logic to java 2008-04-01 20:45:24 +00:00
Elias Naur 4bf0703eb1 Windows: Pulled DefWindowProc calling to java side 2007-12-13 09:29:36 +00:00
Elias Naur e03ee5d4d7 Windows: 64bit compilation fixes 2007-12-04 10:58:10 +00:00
Elias Naur 8bb3e5aec0 Windows: Removed an unused parameter from WindowsDisplay.clipCursor 2007-07-28 20:46:17 +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 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 403fd47e2e Windows: Fixed NULL check in native setupCursorClipping 2007-04-23 20:50:44 +00:00
Elias Naur 97db4ca4b2 Windows: Don't use UpdateWindow after all. Instead, don't use a background brush at all to avoid windows clearing windows with non OpenGL drawing commands. Hopefully this will improve compatibility (The NeHe tutorials also don't specify a background brush). 2007-01-04 14:00:45 +00:00
Elias Naur 0234336feb Windows: Re-add UpdateWindow to make sure fullscreen windows are cleared faster 2007-01-04 13:44:23 +00:00
Elias Naur d4ea142f89 Windows: Make window visible after pixel format selection and move code from native WindowsDisplay.nCreate to java side. 2006-12-22 10:45:39 +00:00
Elias Naur 26f2014516 Windows: Don't discard messages from other windows in the message handler 2006-09-19 11:06:02 +00:00
Elias Naur bd474ceaa9 Windows: Replace _WIN32 macro with _MSC_VER since the conditionals are really for the MSVC compiler, not for the windows platform in general. Code cleanup. 2006-07-15 21:01:11 +00:00
Elias Naur 008c59a301 Windows: Move more of Display.getVersion to java 2006-07-15 19:25:13 +00:00
Elias Naur f15c904fce Windows: Fixed setCursorPosition. 2006-07-14 10:38:31 +00:00
Elias Naur bb8dcf3996 Windows: Rename Win32* files to Windows* 2006-07-12 18:32:58 +00:00
Elias Naur 7815607e09 Windows: move natives from src/native/win32 to src/native/windows because the source really is bitness neutral, not 32 bit specific. 2006-07-12 18:09:11 +00:00
Renamed from src/native/win32/org_lwjgl_opengl_Display.c (Browse further)