thefiddler
bf8efea121
[Mac] Only add callbacks for recognized USB HID devices
2014-01-05 00:00:49 +01:00
thefiddler
c44b477388
[Mac] Implement device added/removed events for joysticks
2014-01-04 23:58:59 +01:00
thefiddler
9659a1d786
[Mac] Add skeleton HID input implementation for joysticks
2014-01-04 23:55:38 +01:00
thefiddler
3a63496b6d
Merge branch 'gamepad' into develop
...
Conflicts:
Source/OpenTK/OpenTK.csproj
2014-01-03 02:23:02 +01:00
thefiddler
b9a8e365de
[Input] Added IJoystickDriver2.GetGuid() API
2013-12-31 14:09:17 +01:00
thefiddler
cf76aa6085
[Mac] Moved GetAddress implementation to its own class
...
The functions defined in libdl.dylib are useful in more places than
just AglContext. Moving them to their own class ensures we can access
these from wherever we might need them.
2013-12-28 01:06:33 +01:00
thefiddler
b79d951e62
[Mac] Use Cgl.GetCurrentContext instead of Agl
...
CGL appears to work with both AGL and NSOpenGL contexts, whereas AGL is
limited to AGL contexts. This allows us to be more flexible in terms of
implementation (i.e. we can use Cgl.GetCurrentContext to retrieve a
handle to a context created through SDL, which uses NSOpenGL
internally.)
2013-12-28 01:04:22 +01:00
thefiddler
1eb807bb64
Use IGamePadDriver through MappedGamePadDriver
2013-12-24 17:18:05 +01:00
Stefanos A
7e5307bd4a
Added IJoystickDevice2 interface
2013-12-24 17:18:03 +01:00
thefiddler
8f7eebb58d
Enabled HIDInput IGamePadDriver implementation
2013-12-24 17:18:02 +01:00
thefiddler
d7fefe495e
Removed unused constructors
2013-12-23 21:43:17 +01:00
thefiddler
95270c877d
Added Compositing and FrameworkScaled flags
2013-12-23 21:42:16 +01:00
thefiddler
1189b33ed5
Fixed OpenTK/Carbon key repeat behavior to match the other backends
2013-12-23 20:40:27 +01:00
thefiddler
c13d80d6d8
Fixed GameWindow.{Bounds, Location, Size, X, Y} setters on OpenTK/Carbon
2013-12-23 20:21:02 +01:00
thefiddler
c6a21a2239
Implemented KeyDown & KeyUp events on OpenTK/Carbon
2013-12-23 19:32:16 +01:00
Stefanos A
dfd683ef49
Merge master into no-reflect
2013-12-15 16:36:37 +01:00
Stefanos A
ca5a5b4d16
Reduce temporary string allocations
...
Instead of modifying the name of an OpenGL symbol on the managed side,
before copying it to the unmanaged side, we perform the modification
directly on the unmanaged side. This reduces the total amount of
allocations in OpenTK by ~30% (673496 bytes in 10750 objects compared
to 930272 bytes in 15243 objects before this modification.)
2013-12-05 11:20:58 +01:00
Stefanos A.
c53c0bc66f
Added GetProcAddress(IntPtr) overloads
...
This might allow us to improve startup performance, by avoiding string
marshaling during extension loading.
2013-11-28 23:21:19 +01:00
Stefanos A.
f9fdddea64
Re-added WindowHandle property
...
There are projects that use reflection to access
*WindowInfo.WindowHandle directly. This change ensures we don't break
them.
2013-11-13 18:25:49 +01:00
Stefanos A
6edaf8c3cf
Deduplicate MacOSGraphicsMode and AglContext
...
The IGraphicsMode interface is gradually being removed and the
MacOSFactory will now throw an exception if an instance is requested.
AglContext no longer duplicates MacOSGraphicsMode functionality.
2013-11-08 18:44:02 +01:00
Stefanos A
70818d97e1
Fixed compilation on desktop platforms.
2013-10-12 05:14:51 +02:00
Stefanos A
1130d988b0
Use OpenTK.Minimal to stub out missing System.Drawing functionality
...
when building on Android or iOS platforms.
2013-10-12 05:06:54 +02:00
Stefanos A
a85cecdc59
Improved resource disposal
...
Added IDisposable interface to all classes holding native data that must be freed. OpenTK.Toolkit.Init() now returns an IDisposable instance that can be used to cleanup all native data held by OpenTK. This is useful when re-initializing OpenTK (possibly in a new AppDomain), as is the case in the Example browser.
2013-10-01 22:01:27 +02:00
Stefanos A.
b57e58dc47
Implemented Sdl2GLControl
...
SDL2 still fails with "not an OpenGL window".
2013-09-30 20:47:29 +02:00
thefiddler
6d0b5eb49f
Implemented SDL2 platform using sdl2-cs
...
This is a new platform that can be used then sdl2 is installed on the target system. SDL2 is commercially supported by Valve and provides better support for MacOS compared to our current implementation (Cocoa vs Carbon). It will also help us introduce faster support for new platforms. Existing platforms remain as a fallback and will be automatically used if sdl2 is not installed.
Please note that this is still a work in progress. The new mouse and keyboard API is not supported yet. Due to limitations of sdl2, multiple mice/keyboards are also not supported.
2013-09-27 14:41:37 +02:00
David Jeske
cce40d60b0
fix MacOS bug mapping modifier keys to the scancode array
2013-08-10 19:50:05 -07:00
David Jeske
2c29df6296
added support for smooth trackpad scrolling on macos
2013-08-09 23:20:49 -07:00
Andy Korth
0f64af130a
Committing artfunkel patch for scan codes
2013-01-24 15:48:01 -06:00
Andy Korth
2a0ad3ef6f
A few minor comments
2013-01-17 14:45:57 -06:00
Robert Rouhani
b5591e1eee
Started implementing GamePad
2013-01-16 17:56:31 -08:00
Andy Korth
c98d9e4503
Supress printing of some keyboard non-errors.
2012-12-21 18:43:19 -06:00
Andy Korth
39c3f3f543
Replication project for Mac OS mouse input issue, and fix. OpenTK issues 3242 and 2800
2012-12-21 17:11:39 -06:00
Andy Korth
bef7ecd1ed
Fix incorrect Mac OS key map, OpenTK issue 3220
2012-12-20 13:45:00 -06:00
the_fiddler
e838aa7953
Use Debug.WriteLine instead of Debug.Print on a single-parameter string. Fixes compilation on mobile devices.
2011-12-08 00:17:08 +00:00
the_fiddler
41e0c65dcb
Avoid using the global namespace in the MINIMAL configuration, as it confuses the Mono compiler.
2011-12-08 00:10:03 +00:00
the_fiddler
4fde3c4dab
Added conditional compilation and the necessary classes to compile OpenTK without referencing System.Drawing.dll. To build without System.Drawing, add "MINIMAL" to the conditional compilation symbols. Note that this is an experimental feature that will result in a source- and binary-incompatible dll.
2011-12-08 00:03:14 +00:00
the_fiddler
809d369c52
Implemented IGraphicsContext.SwapInterval property that supersedes IGraphicsContext.VSync. Fixes issue [ #2671 ]: "Expose SwapInterval to GameWindow".
2011-09-06 12:06:30 +00:00
the_fiddler
1bfd143b96
* Platform/MacOS/HIDInput.cs, Platform/MacOS/MacOSFactory.cs:
...
Added support for raw keyboard input.
2010-11-30 23:23:42 +00:00
the_fiddler
5b3c08f463
* Platform/MacOS/CarbonGLNative.cs:
...
Fixed handling of key repeat.
Fixed crash when unknown key is pressed.
2010-11-30 23:22:56 +00:00
the_fiddler
455acac6f8
* MacOS/CarbonGLNative.cs:
...
Removed unnecessary debug information.
2010-11-26 13:32:52 +00:00
the_fiddler
df4339433a
* EventInfo.cs, AglContext.cs, MacOSKeyMap.cs, Application.cs,
...
CarbonInput.cs, CarbonGLNative.cs, MacOSException.cs,
CarbonBindings/Agl.cs, CarbonBindings/CarbonAPI.cs,
CarbonBindings/MacOSKeys.cs, CarbonBindings/SpeechChannel.cs,
CarbonBindings/CoreFoundation.cs,
CarbonBindings/QuartzDisplayServicesAPI.cs:
Normalized licensing information.
2010-11-26 11:41:45 +00:00
the_fiddler
75aa2a1dc1
* Platform/MacOS/CarbonGLNative.cs:
...
Implemented CursorVisible property. Aligned mouse behavior to win32 &
x11. General code cleanup.
2010-11-26 11:01:51 +00:00
the_fiddler
ed08f068c7
* Platform/MacOS/CarbonBindings/QuartzDisplayServicesAPI.cs:
...
Added support for mouse control.
2010-11-26 11:00:57 +00:00
the_fiddler
42663d1a70
* Platform/MacOS/CarbonBindings/CarbonAPI.cs:
...
Added support for mouse delta events.
2010-11-26 11:00:27 +00:00
the_fiddler
859216b94b
Disabled event suppression after cursor movements.
2010-11-26 10:59:08 +00:00
the_fiddler
2c0b024158
Implemented SetPosition in terms of CGWarpMouseCursorPosition.
...
Added constructors to HIPoint.
2010-11-25 00:30:16 +00:00
the_fiddler
1fc495a06f
Implemented new multi-mouse API on Mac
...
OS X.
2010-11-24 23:49:40 +00:00
the_fiddler
efc864de76
Use main run loop for input callbacks. This way we don't have to run the loop ourselves.
...
Unregister callbacks for removed devices.
2010-11-24 13:13:14 +00:00
the_fiddler
72a38b36cb
Device discovery now works correctly. Added support for input value callbacks.
2010-11-24 12:50:08 +00:00
the_fiddler
1626b3a835
* MacOSGraphicsMode.cs:
...
* CarbonBindings/Agl.cs: Added AGL-based GraphicsMode detection on Mac
OS X. Fixes issue [#1679 ]: "GraphicsMode returns hardcoded mode on
Mac OS X".
2010-11-24 00:55:19 +00:00