thefiddler [Wed, 17 Sep 2014 16:15:56 +0000 (18:15 +0200)]
[Mac] Use DeviceCollection
This reduces code duplication significantly.
thefiddler [Wed, 17 Sep 2014 16:15:05 +0000 (18:15 +0200)]
[Input] Added From* overloads with out parameters
thefiddler [Mon, 15 Sep 2014 12:48:01 +0000 (14:48 +0200)]
[Mac] Match SDL2 element order
Joystick elements (axes, buttons, hats) are now reported in the same
order as SDL2. This fixes potential mismatches in the GamePad
configuration database.
Additionally, elements are now counted correctly (duplicate elements no
longer count towards the total.)
thefiddler [Fri, 12 Sep 2014 08:33:24 +0000 (10:33 +0200)]
[Mac] Fixed Joystick Hat calculations
thefiddler [Fri, 12 Sep 2014 06:11:30 +0000 (08:11 +0200)]
[Mac] Sort joystick elements like SDL2
GamePad configuration database is now working correctly on Mac.
thefiddler [Fri, 12 Sep 2014 06:10:21 +0000 (08:10 +0200)]
[Mac] Added CFGetTypeID method
thefiddler [Thu, 11 Sep 2014 13:57:14 +0000 (15:57 +0200)]
[Mac] Use cookies to match HID joystick elements
thefiddler [Thu, 11 Sep 2014 11:18:29 +0000 (13:18 +0200)]
[Mac] Fixed joystick Guid calculation
The result now matches the output of SDL2 as well as the entries in the
GamePad configuration database.
thefiddler [Wed, 17 Sep 2014 23:14:50 +0000 (01:14 +0200)]
Merge pull request #161 from thefiddler/win_xinput
[Win] HID-based IJoystickDriver2; improve XInput2 IGamePadDriver
thefiddler [Wed, 17 Sep 2014 21:48:08 +0000 (23:48 +0200)]
[Input] Special-case pre-SDL2.0.4 xinput bindings
Starting with SDL 2.0.4, its xinput bindings are working correctly.
Previous versions would return an invalid zero guid and use incorrect
mapping - this has now been fixed.
thefiddler [Wed, 17 Sep 2014 16:43:29 +0000 (18:43 +0200)]
[Win] Removed unused code
thefiddler [Wed, 17 Sep 2014 16:42:47 +0000 (18:42 +0200)]
[Win] Fixed XInput y-axis and trigger range
thefiddler [Wed, 17 Sep 2014 16:42:27 +0000 (18:42 +0200)]
[Win] Suppressed spurious warning
thefiddler [Tue, 16 Sep 2014 12:17:58 +0000 (14:17 +0200)]
Merge pull request #176 from Robmaister/develop
Added Matrix3[d].Add and Matrix4[d].CreateFromRotationMatrix
thefiddler [Fri, 12 Sep 2014 08:23:54 +0000 (10:23 +0200)]
[Input] Fixed bitwise test for GamePadAxes
thefiddler [Fri, 12 Sep 2014 06:43:20 +0000 (08:43 +0200)]
[SDL] Correctly byteswap Guid
Fixes an issue where GamePad Guids would fail to be matched with the
Guids in the configuration database.
thefiddler [Fri, 12 Sep 2014 06:36:52 +0000 (08:36 +0200)]
[Input] Add GamePadCapabilities.IsMapped
Robert Rouhani [Thu, 11 Sep 2014 16:33:34 +0000 (12:33 -0400)]
Changed Matrix4[d].CreateFromRotationMatrix to a new constructor.
thefiddler [Tue, 2 Sep 2014 22:11:00 +0000 (00:11 +0200)]
[Input] Fixed button/hat->trigger mapping scale
thefiddler [Tue, 2 Sep 2014 22:10:40 +0000 (00:10 +0200)]
[Input] Added P880 win32 gamepad configuration
thefiddler [Tue, 2 Sep 2014 22:10:21 +0000 (00:10 +0200)]
[Input] Fixed trigger ToString()
thefiddler [Tue, 2 Sep 2014 21:57:38 +0000 (23:57 +0200)]
[Input] Added missing Back button in ToString()
thefiddler [Tue, 2 Sep 2014 21:32:50 +0000 (23:32 +0200)]
[Win] Skip devices with too many axes
These are likely not joysticks / gamepads, but multitouch-capable HID
devices.
thefiddler [Tue, 2 Sep 2014 20:12:13 +0000 (22:12 +0200)]
[Win] Correct joystick GUID generation
Joystick GUIDs now match SDL2/DirectInput for USB devices. (Bluetooth
devices still need to be tested.)
thefiddler [Tue, 2 Sep 2014 20:10:26 +0000 (22:10 +0200)]
[Input] Do not throw exception on too many axes
A joystick device with more axes/buttons/hats than supported will now
register a warning message instead of throwing an exception.
Fixes an issue with the VMware touch driver, which registers 25 distinct
axes.
thefiddler [Sat, 2 Aug 2014 22:01:41 +0000 (00:01 +0200)]
[Win] Fix compilation in Release
thefiddler [Sat, 2 Aug 2014 21:10:33 +0000 (23:10 +0200)]
[Win] Added collection id to dictionary keys
thefiddler [Sat, 2 Aug 2014 20:57:42 +0000 (22:57 +0200)]
[Win] Improved joystick debugging information
thefiddler [Thu, 31 Jul 2014 22:42:39 +0000 (00:42 +0200)]
[Win] Correct XInput axes/button/hat mapping
thefiddler [Thu, 31 Jul 2014 22:42:18 +0000 (00:42 +0200)]
[Win] Corrected GUID for xinput devices
thefiddler [Thu, 31 Jul 2014 22:41:49 +0000 (00:41 +0200)]
[Win] Detect xinput devices and use xinput driver
thefiddler [Thu, 31 Jul 2014 21:47:18 +0000 (23:47 +0200)]
[Win] Refactored UpdateAxes
thefiddler [Thu, 31 Jul 2014 21:03:24 +0000 (23:03 +0200)]
[Win] Do not change device index when replugging
thefiddler [Thu, 31 Jul 2014 21:03:02 +0000 (23:03 +0200)]
[Platform] DeviceCollection hardware id is long
thefiddler [Thu, 31 Jul 2014 20:52:50 +0000 (22:52 +0200)]
[Win] Retrieve joystick input even on background
thefiddler [Thu, 31 Jul 2014 20:50:33 +0000 (22:50 +0200)]
[Win] Do not re-query caps in ProcessEvents
We just do that once when a device is opened.
thefiddler [Thu, 31 Jul 2014 20:40:57 +0000 (22:40 +0200)]
[Input] Improved GamePadButtons.ToString()
thefiddler [Thu, 31 Jul 2014 20:28:23 +0000 (22:28 +0200)]
[Win] Fixed axis, button and hat value updates
thefiddler [Thu, 31 Jul 2014 20:27:22 +0000 (22:27 +0200)]
[Win] Fixed axis range calculation
Values are now correctly scaled between [min, max]
thefiddler [Thu, 31 Jul 2014 19:58:18 +0000 (21:58 +0200)]
[Win] Added HidP status codes
thefiddler [Thu, 31 Jul 2014 18:44:30 +0000 (20:44 +0200)]
[Win] Implemented joystick button updates
Due to the way we segregate axes from buttons, the easiest approach is
to retrieve the current button state via HidP_GetUsages().
Axes, buttons and hats are now allocated sequentially based on their
order of appearance in the device capability reports.
thefiddler [Thu, 31 Jul 2014 13:44:11 +0000 (15:44 +0200)]
[Win] Raw input parsing moved to input drivers
thefiddler [Thu, 31 Jul 2014 13:43:13 +0000 (15:43 +0200)]
[Win] Added helper raw input methods
thefiddler [Thu, 31 Jul 2014 12:02:51 +0000 (14:02 +0200)]
[Win] Use DeviceCollection. Fix GUID detection
thefiddler [Thu, 31 Jul 2014 12:02:37 +0000 (14:02 +0200)]
[Common] Use long for device keys
thefiddler [Thu, 31 Jul 2014 12:02:13 +0000 (14:02 +0200)]
[Win] Made internal struct non-public
thefiddler [Thu, 31 Jul 2014 07:49:43 +0000 (09:49 +0200)]
[Win] Fixed axis/button detection
We can now discover button range collections.
thefiddler [Thu, 31 Jul 2014 07:49:08 +0000 (09:49 +0200)]
[Win] Improved HidP bindings
Marked arrays with [In] and [Out] as required. Fixes issues with
axis/button capabilities returning empty results.
Added bindings for link collection node transversal.
thefiddler [Wed, 30 Jul 2014 09:38:22 +0000 (11:38 +0200)]
Fixed minor compilation issues
Stefanos A [Sat, 18 Jan 2014 15:53:30 +0000 (16:53 +0100)]
[Win] Cleaned up public region
Stefanos A [Sat, 18 Jan 2014 15:53:17 +0000 (16:53 +0100)]
[Win] Corrected GetRawInputData invocation
Stefanos A [Sat, 18 Jan 2014 15:25:52 +0000 (16:25 +0100)]
[Win] Removed WinMM joystick driver
Stefanos A [Sat, 18 Jan 2014 15:00:27 +0000 (16:00 +0100)]
[Win] Completed raw input IJoystickDriver2
For improved safety, we are now using managed memory buffers instead of
stack allocations and pointers.
Stefanos A [Fri, 17 Jan 2014 18:24:00 +0000 (19:24 +0100)]
[Win] Reduce duplication in device enumeration
Stefanos A [Fri, 17 Jan 2014 18:23:25 +0000 (19:23 +0100)]
[Input] Added JoystickCapabilities.SetIsConnected
Stefanos A [Fri, 17 Jan 2014 18:11:16 +0000 (19:11 +0100)]
[Win] Completed WinRawJoystick implementation
Stefanos A [Fri, 17 Jan 2014 18:11:05 +0000 (19:11 +0100)]
[Win] Fixed RawHID struct definition
Stefanos A [Fri, 17 Jan 2014 18:10:41 +0000 (19:10 +0100)]
[Common] Moved axis translation to common
Stefanos A [Fri, 17 Jan 2014 18:10:03 +0000 (19:10 +0100)]
[Win] Wrapped additional HID APIs
Stefanos A [Fri, 17 Jan 2014 12:57:15 +0000 (13:57 +0100)]
[Win] Cleanup Raw Input HID usage/pages
Stefanos A [Fri, 17 Jan 2014 12:39:50 +0000 (13:39 +0100)]
[Common] Cleaned up comments
Stefanos A [Fri, 17 Jan 2014 12:38:22 +0000 (13:38 +0100)]
[Win] Added HidProtocol binding
Stefanos A [Fri, 17 Jan 2014 12:38:09 +0000 (13:38 +0100)]
[Common] Added HID usage page definitions
Stefanos A [Fri, 17 Jan 2014 00:27:07 +0000 (01:27 +0100)]
[Win] Initial implementation of WinRawJoystick
Stefanos A [Thu, 16 Jan 2014 22:35:31 +0000 (23:35 +0100)]
[Win] Improve WinMM.GetCapabilities performance
Polling joyGetCaps is very very slow, so we should not do that every
time GetCapabilities is called. Instead, we should call joyGetCaps once
and cache the results.
We need to find a different way to implement hotplugging.
Stefanos A [Thu, 16 Jan 2014 00:20:32 +0000 (01:20 +0100)]
[Win] Implemented XInput vibration support
Stefanos A [Wed, 15 Jan 2014 22:40:28 +0000 (23:40 +0100)]
[Win] Separate keyboard/mouse & joystick drivers
Keyboard/mouse support comes through WinRawInput; joystick support
through CombinedJoystickDriver. These drivers are now instantiated
separately.
Stefanos A [Wed, 15 Jan 2014 22:38:57 +0000 (23:38 +0100)]
[Win] Added combined XInput+WinMM joystick driver
Joystick devices will be queried through XInput first, with a fallback
to WinMM in case they are not recognized by the newer API.
Stefanos A [Wed, 15 Jan 2014 22:37:44 +0000 (23:37 +0100)]
[Win] Corrected XInput Guid in gamepad database
All XInput devices expose the same button layout, so they only need a
single entry in the gamepad configuration database.
Stefanos A [Wed, 15 Jan 2014 22:36:35 +0000 (23:36 +0100)]
[Win] WinRawInput is IKeyboard/MouseDriver2
Since we do not use Raw Input for joystick devices, it does not make
sense to expose the IJoystickDriver2 interface through WinRawInput. This
keeps allows joystick and keyboard/mouse implementations to reside in
distinct, modular classes, instantiated separately through WinFactory.
Stefanos A [Wed, 15 Jan 2014 22:33:31 +0000 (23:33 +0100)]
[Win] XInputJoystick is now IJoystickDriver2
The IGamePadDriver interface is now implemented using
MappedGamePadDriver on all platforms. This minimizes code duplication
and simplifies all input driver implementations, since we only need
backends for IJoystickDriver2.
Stefanos A [Wed, 15 Jan 2014 16:36:45 +0000 (17:36 +0100)]
[OpenTK] Removed unused CreateGraphicsMode API
IPlatformFactory.CreateGraphicsMode is no longer used or required.
thefiddler [Thu, 11 Sep 2014 10:42:20 +0000 (12:42 +0200)]
Merge pull request #178 from thefiddler/mac_crash
[Mac] Avoid crash when combining with MonoMac/Xamarin.Mac
thefiddler [Thu, 11 Sep 2014 10:42:12 +0000 (12:42 +0200)]
Merge pull request #179 from thefiddler/issue152
[ES][GL] Fix GetObjectLabel marked obsolete
thefiddler [Thu, 11 Sep 2014 10:34:35 +0000 (12:34 +0200)]
[ES][GL] Fix GetObjectLabel marked obsolete
Fixes issue #152
thefiddler [Thu, 11 Sep 2014 10:21:05 +0000 (12:21 +0200)]
[Mac] Avoid calling finishLaunching multiple times
thefiddler [Thu, 11 Sep 2014 10:07:53 +0000 (12:07 +0200)]
[Mac] Do not modify existing mainMenu
If an application already has a custom main menu, avoid overwriting
that in OpenTK.
thefiddler [Thu, 11 Sep 2014 07:33:07 +0000 (09:33 +0200)]
Merge pull request #177 from thefiddler/gw_input
[Input] Added GameWindow.Mouse/Keyboard.GetState()
thefiddler [Thu, 11 Sep 2014 07:32:13 +0000 (09:32 +0200)]
Merge pull request #166 from thefiddler/gl45
[GL] Add OpenGL 4.5 support
thefiddler [Wed, 10 Sep 2014 23:03:24 +0000 (01:03 +0200)]
[Input] Added GameWindow.Mouse/Keyboard.GetState()
GameWindow.Mouse/Keyboard hide OpenTK.Input.Mouse/Keyboard.
To simplify usage, the former now provide the same methods
as the latter.
thefiddler [Wed, 10 Sep 2014 22:00:16 +0000 (00:00 +0200)]
[API] Fixed tests for nested types
thefiddler [Wed, 10 Sep 2014 21:29:30 +0000 (23:29 +0200)]
[Convert] Update to v4.5 by default
thefiddler [Wed, 10 Sep 2014 21:29:15 +0000 (23:29 +0200)]
[API] Update test to cover extensions
thefiddler [Wed, 10 Sep 2014 21:29:03 +0000 (23:29 +0200)]
[ES][GL] Maintain compatibility with 1.1.4
Robert Rouhani [Tue, 9 Sep 2014 17:21:11 +0000 (13:21 -0400)]
Added Matrix3[d].Add and Matrix4[d].CreateFromRotationMatrix
thefiddler [Wed, 3 Sep 2014 18:56:43 +0000 (20:56 +0200)]
[GL] Sync signatures with OpenGL 4.5
thefiddler [Wed, 3 Sep 2014 18:55:42 +0000 (20:55 +0200)]
[Bind] Remove default debug parameter
thefiddler [Wed, 3 Sep 2014 18:55:25 +0000 (20:55 +0200)]
[Bind] Minor debug message beautification
thefiddler [Thu, 14 Aug 2014 08:50:26 +0000 (10:50 +0200)]
[Bind] Hardcode some common OpenGL IHV names
These names are present in ES enums, even if no function uses them. We
need them for backwards-compatibility.
thefiddler [Thu, 14 Aug 2014 08:49:47 +0000 (10:49 +0200)]
[Bind] Use ES/1.1/obsolete.xml
thefiddler [Thu, 14 Aug 2014 08:49:36 +0000 (10:49 +0200)]
[ES] Moved some ES 1.1 to ES/1.1/obsolete.xml
thefiddler [Thu, 14 Aug 2014 08:31:02 +0000 (10:31 +0200)]
[GL] Removed duplicate enums
This duplication is no longer necessary, after the enum name
translation fix.
thefiddler [Thu, 14 Aug 2014 08:30:25 +0000 (10:30 +0200)]
[Bind] Added ES 3.1 generator
thefiddler [Thu, 14 Aug 2014 08:30:14 +0000 (10:30 +0200)]
[Bind] Do not re-translate translated enum names
thefiddler [Thu, 14 Aug 2014 06:29:53 +0000 (08:29 +0200)]
[GL] Fixed COMPRESSED_SRGB_ALPHA_BPTC_UNORM token
thefiddler [Thu, 14 Aug 2014 06:27:31 +0000 (08:27 +0200)]
[GL] Fixed TEXTURE_BINDING_RECTANGLE token
thefiddler [Thu, 14 Aug 2014 06:13:09 +0000 (08:13 +0200)]
[GL] Removed duplicate bindings
thefiddler [Thu, 14 Aug 2014 06:12:14 +0000 (08:12 +0200)]
[GL] Added missing VertexAttribDPointerType enum
This enum used to be there, but somehow disappeared from the 4.5 specs.
It’s back now.
thefiddler [Thu, 14 Aug 2014 06:11:30 +0000 (08:11 +0200)]
[ES] Implemented ES 3.1 binding generator
thefiddler [Thu, 14 Aug 2014 06:11:11 +0000 (08:11 +0200)]
[GL][ES] Implemented ARB_ES_3_1_compatibility
MemoryBarrier and MemoryBarrierByRegion now use the same enum name.