the_fiddler
33529aff63
* Source/OpenTK/Platform/X11/X11GLNative.cs: Confine pointer to
...
window when it becomes invisible.
2010-10-20 09:50:49 +00:00
the_fiddler
527cdf8622
* Source/OpenTK/Platform/X11/X11GLNative.cs: Refactored empty cursor
...
creation into its own function. Create one empty cursor for the
lifetime of the window.
2010-10-20 09:19:34 +00:00
the_fiddler
63b35badee
Take into account the fact that ShowCursor(true/false) calls are cumulative (we want boolean behavior instead).
2010-10-19 09:25:09 +00:00
the_fiddler
f302a62fc1
Added initial code for mouse grabbing. Modified GameWindowStates to test this.
2010-10-19 09:20:59 +00:00
the_fiddler
9c524e0d52
* Source/OpenTK/Platform/MacOS/CarbonGLNative.cs: Removed unused
...
code.
2010-10-18 16:14:50 +00:00
the_fiddler
60a9af5939
* Source/OpenTK/Platform/Windows/API.cs:
...
* Source/OpenTK/Platform/Windows/WinGLNative.cs: Implemented
CursorVisible.
2010-10-18 16:14:38 +00:00
the_fiddler
1fc5e96a25
* Source/OpenTK/NativeWindow.cs:
...
* Source/OpenTK/INativeWindow.cs:
* Source/OpenTK/Platform/X11/API.cs:
* Source/OpenTK/Platform/X11/X11GLNative.cs:
* Source/OpenTK/Platform/Windows/WinGLNative.cs:
* Source/OpenTK/Platform/MacOS/CarbonGLNative.cs:
* Source/Examples/OpenTK/Test/GameWindowStates.cs: Initial
implementation of CursorVisible API. See issue [#1560 ].
2010-10-18 15:25:25 +00:00
the_fiddler
f2d418e3d1
Report Xinerama as not supported when it fails to detect any devices. Fixes issue on Nvidia drivers when Twinview is enabled.
2010-10-09 19:11:45 +00:00
the_fiddler
dd41ed9610
Added XF86VM fallback when XRandR is missing (many thanks to jdomnitz!)
2010-10-09 19:10:39 +00:00
the_fiddler
88e6aceae0
Synced trunk with 1.0 branch.
2010-10-02 18:52:34 +00:00
the_fiddler
bca3751e8b
Synced with 1.0 branch.
2010-03-11 22:53:11 +00:00
the_fiddler
53b84d18d4
Backported bugfixes from 1.0 branch.
2010-02-03 19:04:42 +00:00
kanato
411f4bcc98
* Platform/MacOS/CarbonGLNative.cs: Fix width/height properties on Mac OS X.
2010-01-11 22:08:00 +00:00
the_fiddler
6471772777
Added support for fractional mouse wheel values. Fixes issue [ #1279 ]: "Mouse wheel does not seem to work".
2009-11-16 12:15:35 +00:00
the_fiddler
a8c0c7adf4
Preserve the sign of the mouse position. Fixes issue [ #1376 ]: "mouse position".
2009-11-16 10:38:49 +00:00
kanato
1bc11bb807
MacOS: Fix crash in CheckEnterLeaveEvents if using WinForms too.
2009-11-15 22:00:14 +00:00
kanato
69c05cdb20
MacOS: Correct resizing behavior and correctly implement Bounds, ClientRectangle, and ClientSize getters and setters.
2009-11-15 19:31:23 +00:00
kanato
d695bb599c
MacOS: Add proper icon support for the dock.
2009-11-15 18:08:49 +00:00
kanato
63b314c4a8
MacOS: Implement Focused property and FocusChanged event.
2009-11-15 04:12:37 +00:00
kanato
103190ebf4
MacOS: Implement mouse enter / leave events.
2009-11-15 03:55:29 +00:00
kanato
52e89c13b1
MacOS: Clean up AglContext destruction code.
...
Implement INativeWindow.Close method.
2009-11-14 21:33:07 +00:00
kanato
ed05d8e12c
MacOS: Several minor fixes:
...
* Implement MouseWheel event
* Implement KeyPress event
* Fix generation of MouseMove events
* Fix right mouse button up event
2009-11-14 18:40:56 +00:00
kanato
6979e24254
MacOS: Fix bug where application started from the command line would not be in the foreground and not respond to keyboard events.
2009-11-14 00:30:57 +00:00
the_fiddler
fe01e67d39
Do not hook ProcessExit event if an X server is not available. Should fix issue [ #1364 ]: 1.0 beta-1 throws TypeInitializationException in OpenTK.Platform.X11.API when running on windows.
...
Cleaned up stale comments and code.
2009-11-12 15:41:41 +00:00
the_fiddler
2870532c78
Branched for 1.0 release.
2009-11-09 20:14:14 +00:00
kanato
d7506f0a73
MacOS: Hack for AGL to have access to the display device specified when a NativeWindow is created.
2009-11-09 07:50:21 +00:00
kanato
049d339643
MacOS: Detect display boundaries so created windows are placed in the right spot.
2009-11-09 07:39:38 +00:00
kanato
dad798d41d
MacOS: Fix event from user clicking close box to properly report that window doesn't exist anymore.
2009-11-09 07:18:54 +00:00
the_fiddler
c494250c3c
Disabled OpenTK.Point, Size and Rectangle structures that were meant to replace their System.Drawing implementations until the correct course of action can be determined. This change is too disruptive to existing applications, especially if they are also using Windows.Forms (see discussion here: http://www.opentk.com/node/1348 ).
2009-11-08 23:02:53 +00:00
the_fiddler
eedbe9df31
Don't display window by default, unless "Visible = true" is called. Allows the creation of invisible windows for secondary GraphicsContexts.
2009-11-08 22:46:49 +00:00
the_fiddler
a0e95055e3
Added a second terminating 0 to attribute list, trying to work around issue [ #1352 ]: "Occasional AccessViolationExceptions when creating the GLControl".
2009-11-08 22:42:20 +00:00
the_fiddler
874401ce0b
Use SHOW command instead of SHOWNORMAL when making a window visible, since SHOWNORMAL will un-maximize a fullscreen or maximized window.
...
Do not force an invisible window to become visible when modifying its state or borders.
2009-11-07 10:44:31 +00:00
the_fiddler
29dd5dfe68
Update the context when the native window is resized.
2009-11-06 21:56:35 +00:00
the_fiddler
4278538317
MacOS can have an X server installed. Modified the code so that it prefers the native Carbon/Quartz platform driver over X in this case.
2009-11-06 17:58:35 +00:00
the_fiddler
139b6af9fa
* Platform/Windows/WinDisplayDevice.cs:
...
* Platform/MacOS/QuartzDisplayDeviceDriver.cs: Updated to use the new
DisplayDevice constructors.
* Platform/X11/X11XrandrDisplayDevice.cs: Query Xinerama for the exact
bounds of each display device, if available.
Use global X lock to protect from multithreaded access.
2009-11-06 09:50:50 +00:00
the_fiddler
e6aeff7d35
* X11GLNative.cs: Convert from ASCII to the default encoding before generating KeyPress events (allows support for simple scripts that do not use composition.)
2009-11-05 12:12:29 +00:00
the_fiddler
5127316431
* X11GLNative.cs: Implemented KeyPress event (no support for input
...
methods yet).
* Functions.cs: Added XLookupString and XRefreshKeyboardMapping
methods for simple ANSI text input.
2009-11-05 11:49:24 +00:00
the_fiddler
4af10e6c68
Added missing TitleChanged event.
2009-11-04 20:49:38 +00:00
the_fiddler
03512805c8
Removed unused code.
2009-11-04 20:48:35 +00:00
the_fiddler
2cec4c1696
Refactored timer installation/removal into their own methods.
2009-11-04 18:35:32 +00:00
the_fiddler
7f57d75570
Support external EGL contexts.
2009-11-04 17:00:52 +00:00
the_fiddler
2d4b962d2c
Renamed internal BindingsBase.LoadAll/Load methods to LoadEntryPoints/LoadEntryPoint, in order to avoid name clashes with the static GL.LoadAll() method.
...
Added GraphicsContext() constructor that takes an existing, valid OpenGL context. This can be used for interop with third-party toolkits which create the OpenGL context themselves.
2009-11-04 16:49:56 +00:00
the_fiddler
11dc8fc4cd
Initialize threads before calling any other X methods.
2009-11-04 10:04:16 +00:00
the_fiddler
e5469f38d1
Removed unnecessary debugging messages from main loop.
2009-11-04 10:03:50 +00:00
the_fiddler
331b7d0f63
Default window style flags can be constants rather than static readonly fields.
...
Throw an exception if we fail to register the window class, the previous solution (check for "class already exists" error) was a workaround for a threading issue that has been solved.
Set the small icon when registering the class.
2009-11-04 09:21:41 +00:00
the_fiddler
eec0033297
Fixed ClassName and ModalLoopTimerId when constructing multiple WinGLNative windows in parallel.
...
WinGLNative windows are now correctly focused when clicked on the client area.
2009-11-03 23:42:06 +00:00
the_fiddler
2ba3e5357e
Serialize context construction to avoid threading issues with shared contexts.
2009-11-03 23:39:03 +00:00
the_fiddler
40940d1430
Avoid static caching of extension strings and improve multithreading behavior - WGL extension checking is fast enough that caching is not very useful.
2009-11-03 23:36:37 +00:00
the_fiddler
ddb56a1952
Added SyncRoot object to BindingsBase that can be used to protect shared state in the various bindings.
2009-11-03 23:26:57 +00:00
the_fiddler
974641086c
Use more aggressive xlib locking following the advice of the multithreaded X manpages (needs work).
2009-11-02 22:37:13 +00:00