the_fiddler
68d35f7d69
* X11GLNative.cs: Added missing KeyDown/KeyUp events.
2010-11-09 11:52:14 +00:00
the_fiddler
52d38059f4
* XI2Mouse.cs:
...
* X11Factory.cs: Removed window hooking, as it complicates code
unnecessarily.
2010-11-04 18:01:07 +00:00
the_fiddler
574909c426
* X11KeyMap.cs: Added AltGr keycode.
...
* X11Mouse.cs: Use XQueryPointer instead of trying to hook events.
* X11Keyboard.cs: Improved handling of key modifiers.
* X11Factory.cs: Use new X11Mouse API.
* Functions.cs: Added XButtonGrab/XButtonUngrab.
* API.cs: Added missing XF86 keysyms.
2010-11-04 17:57:09 +00:00
the_fiddler
151c21f520
* X11Keyboard.cs: Use XQueryKeymap to discover key state.
...
* X11Factory.cs: Use new X11Keyboard interface.
Temporarily disabled XI2Mouse for testing.
* Functions.cs: Fixed type declaration for Time.
Added support for XIGrabDevice, XIUngrabDevice, XGrabKey, XUngrabKey,
XAllowEvents and XKeycodeToKeysym/XKeysymToKeycode.
* API.cs: Enumerate modes for XAllowEvents.
2010-11-01 08:01:44 +00:00
the_fiddler
93130dfbd8
Decoupled new driver API from old public interface.
...
WinRawMouse can now detect mouse disconnection/connection events.
2010-10-29 11:27:40 +00:00
the_fiddler
415755a257
Modified GetState() to return the combined state for all mouse/keyboard devices.
2010-10-28 11:10:57 +00:00
the_fiddler
0a9d0685a1
Removed events that are not part of the INativeWindow interface.
2010-10-28 09:34:13 +00:00
the_fiddler
c227c36553
Added code to raise all available events. Removed unused events from old OpenTK versions. Fixed potential race condition when raising events (an event might become null between the null check and the actual raising).
2010-10-28 09:31:00 +00:00
the_fiddler
c99dbc619c
Removed unused field.
2010-10-28 09:01:54 +00:00
the_fiddler
dc4a55baab
Don't shadow class field.
2010-10-28 09:01:43 +00:00
the_fiddler
120e38f87a
Suppressed unused field warnings. The fields are necessary for interop, even if not explicitly accessed.
2010-10-28 09:01:25 +00:00
the_fiddler
4d2759eb78
* XI2Mouse.cs:
...
* X11Factory.cs: Detect whether XInput2 is not supported without
throwing an exception.
2010-10-22 07:41:56 +00:00
the_fiddler
eeefbd1a9c
* Input/Mouse.cs:
...
* Platform/X11/X11Mouse.cs:
* Platform/X11/XI2Mouse.cs: Added internal list of mouse devices in
preparation for multi-mouse support.
2010-10-21 14:53:10 +00:00
the_fiddler
80ee257777
* OpenTK.csproj:
...
* Input/MouseState.cs:
* Platform/X11/Structs.cs:
* Platform/X11/XI2Mouse.cs:
* Platform/X11/Functions.cs:
* Platform/X11/X11Factory.cs: Added XInput2 driver for mice.
Multi-mouse support pending.
* Platform/X11/X11Mouse.cs: Log the driver type for debugging
purposes.
2010-10-21 12:32:00 +00:00
the_fiddler
23ad81d12b
* Platform/X11/X11Keyboard.cs: Added index bounds check for
...
GetState.
2010-10-21 07:56:48 +00:00
the_fiddler
1a8f589f5c
* OpenTK.csproj:
...
* Input/MouseState.cs:
* Input/ButtonState.cs:
* Platform/X11/X11Mouse.cs:
* Platform/X11/X11Factory.cs: Added initial implementation of
OpenTK.Input.Mouse for X11.
2010-10-21 07:56:37 +00:00
the_fiddler
3c238a01f6
* X11Keyboard.cs: Do not allocate an X11WindowInfo unnecessarily.
2010-10-20 15:16:55 +00:00
the_fiddler
85c37f0600
* Source/OpenTK/Input/Mouse.cs:
...
* Source/OpenTK/Platform/Factory.cs:
* Source/OpenTK/Input/InputDriver.cs:
* Source/OpenTK/Input/IMouseDriver.cs:
* Source/OpenTK/Platform/X11/X11Input.cs:
* Source/OpenTK/Platform/X11/X11Factory.cs:
* Source/OpenTK/Platform/Windows/WMInput.cs:
* Source/OpenTK/Platform/IPlatformFactory.cs:
* Source/OpenTK/Platform/MacOS/CarbonInput.cs:
* Source/OpenTK/Platform/Windows/WinFactory.cs:
* Source/OpenTK/Platform/MacOS/MacOSFactory.cs:
* Source/OpenTK/Platform/Windows/WinGLNative.cs:
* Source/OpenTK/Platform/Windows/WinRawMouse.cs:
* Source/OpenTK/Platform/Windows/WinRawInput.cs: Added new MouseDriver
interface and added stub internal implementations.
2010-10-20 14:58:38 +00:00
the_fiddler
7e3182b1fc
* Source/OpenTK/OpenTK.csproj:
...
* Source/OpenTK/Input/Keyboard.cs:
* Source/OpenTK/Input/InputDriver.cs:
* Source/OpenTK/Input/KeyboardState.cs:
* Source/OpenTK/Input/IKeyboardDriver.cs:
* Source/OpenTK/Platform/X11/X11Input.cs:
* Source/OpenTK/Platform/X11/Functions.cs:
* Source/OpenTK/Platform/X11/X11Factory.cs:
* Source/OpenTK/Platform/Windows/WMInput.cs:
* Source/OpenTK/Platform/X11/X11Keyboard.cs:
* Source/OpenTK/Platform/MacOS/CarbonInput.cs:
* Source/OpenTK/Platform/Windows/WinGLNative.cs:
* Source/OpenTK/Platform/Windows/WinRawInput.cs:
* Source/OpenTK/Platform/Windows/WinRawKeyboard.cs: Added initial
OpenTK.Input.Keyboard implementation for X11.
2010-10-20 14:33:23 +00:00
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
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
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
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
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
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
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
the_fiddler
2a1924c62c
Do not allow MakeCurrent() to change the display connection of the context. This would result in an X error and the change allows us to simplify shutdown/cleanup logic.
2009-11-02 20:50:16 +00:00
the_fiddler
ea1765ec75
Added experimental Icon and IconConverter implementations from Mono.
...
Modified INativeWindow implementations to not qualify Icon class fully, so we can change the implementation between System.Drawing and OpenTK at will (using the EXPERIMENTAL #define).
2009-11-02 09:33:53 +00:00
the_fiddler
2340e87eda
Added experimental OpenTK.Point/Size/Rectangle alternatives to System.Drawing, to make OpenTK usable without referencing System.Drawing (disabled by default, #define EXPERIMENTAL to test). Modified a number of using directives and namespace qualifiers to accommodate this change.
2009-11-01 12:44:38 +00:00
the_fiddler
a7eb81a68c
Implemented INativeWindow.MouseEnter/MouseLeave events on Win32 and X11.
2009-10-27 23:57:44 +00:00
the_fiddler
b92198bccc
Avoid accessing OpenTK.Graphics.OpenGL from platform-specific code. Reduces coupling and code-duplication.
2009-10-21 10:16:32 +00:00
the_fiddler
65e9d6d969
* X11GLNative.cs: Added more defensive checks for the existence of the window before issuing XDestroyWindow.
...
Do not allow multiple calls to XDestroyWindow once the shutdown sequence has been initialized. Fixes issue [#1190 ]: "GameWindow dispose on linux".
2009-10-19 19:46:37 +00:00
the_fiddler
de37859604
* X11GLNative.cs: Correctly set all necessary ClientMessage fields
...
for XSendEvent call in Close() method.
2009-10-19 19:03:17 +00:00
the_fiddler
4743a9e810
* Functions.cs: Added helper function for XSendEvent, so that we
...
don't need to cast the EventMask to IntPtr.
2009-10-19 19:02:07 +00:00
the_fiddler
5ba821a09a
* X11GLContext.cs: Correctly set GraphicsMode in constructor (resolves issue [ #1175 ]: "Graphics] GraphicsContext.GraphicsMode property returns null on Linux").
2009-10-19 18:11:32 +00:00