Fraser Waters
af924afef4
Add To/From sRGB methods to Color4.
2014-11-12 19:52:14 +01:00
thefiddler
d59ee5920e
Merge pull request #194 from Frassle/getentryassembly
...
[X11] GetEntryAssembly may be null.
2014-11-12 17:59:07 +01:00
Fraser Waters
b9cc6fa861
[X11] GetEntryAssembly may be null.
...
When running under NUnit GetEntryAssembly returns null. In this case we instead
search through the AppDomain for an assembly that matches the AppDomain name.
2014-11-04 23:00:05 +01:00
Fraser Waters
516bcca8f3
Throw exception if ProcessEvents isn't called on main thread.
2014-11-03 23:41:19 +01:00
Fraser
f8af961d54
Merge pull request #190 from Frassle/warnings
...
[Issue #61 ] Fix warnings.
2014-11-03 14:58:35 +01:00
Fraser Waters
fe3a0df56a
Add #pragma warning disable for unused field warnings.
...
Fixes warnings [#61 ] by disabling unused field warnings for two structures in
HidProtocol. These fields aren't currently used by OpenTK but the stuctures are
used in native marshalling so must match the documented structures perfectly.
2014-11-03 01:39:45 +01:00
Fraser Waters
41b684491d
Remove unused fields/variables.
...
Fixes warnings [#61 ] by removing some unused variables and an unused field.
Field was private so no inheritance concerns.
2014-11-03 01:36:36 +01:00
Fraser Waters
2c178d54fd
Remove unused field.
...
Fixes warnings [#61 ] by removing an unused field.
2014-11-03 01:35:49 +01:00
Fraser Waters
1002d4e33a
Add XML documentation to matrix Add methods.
...
Fixes warnings [#61 ] about missing documentation on public members.
2014-11-03 01:33:27 +01:00
thefiddler
e520ef6175
Merge pull request #187 from Lazzu/develop
...
Added support for Euler angles in Quaternion structs
2014-10-13 18:24:14 +02:00
thefiddler
1f96bc87f4
Merge pull request #188 from xThaWolfx/patch-1
...
Update MouseEventArgs.cs
2014-10-13 18:19:11 +02:00
xThaWolfx
077bf0d65e
Update MouseEventArgs.cs
...
The IsPressed field was never updated as the pressed parameter was never used.
2014-10-13 17:58:47 +02:00
Lasse Numminen
6c53ab6623
Added support for Euler angles in Quaternion and Quaterniond by adding proper vec3 and pitch-yaw-roll constructors, and also added similar static helper functions. I unit tested them locally and the results match to the calculator found from the bottom of this web page: http://www.euclideanspace.com/maths/geometry/rotations/conversions/eulerToQuaternion/index.htm
2014-10-12 21:37:26 +03:00
thefiddler
9a37b72002
Merge pull request #186 from thefiddler/al_notfound_fix
...
[AL] Fix runtime crash when OpenAL not available
2014-09-30 13:53:11 +02:00
thefiddler
9851a3bab9
[AL] Fix runtime crash when OpenAL not available
...
Issue reported at http://www.opentk.com/node/3805
We must not throw exceptions from a finalizer, as this leads to the
runtime forcibly taking down the application.
2014-09-29 23:37:40 +02:00
thefiddler
e06fc9fb0a
Merge pull request #182 from thefiddler/win_inputcrash_fix
...
[Win] Avoid NRE in WinFactory.Dispose()
2014-09-23 10:21:25 +02:00
thefiddler
e621b21c88
[Win] Avoid NRE in WinFactory.Dispose()
...
WinFactory.Dispose() could crash with a NRE when the joystick driver has
not been initialized. Fixed by checking for null before disposing the
input driver.
2014-09-23 08:55:02 +02:00
thefiddler
7829fa66b7
[Examples] Removed test code committed by mistake
2014-09-22 13:52:20 +02:00
thefiddler
383cea7e82
[Mac] Fixed exception in HIDInput.Dispose()
...
HIDInput.Dispose() would remove elements from a DeviceCollection during
iteration. This results in an exception.
We are now using a plain for-loop instead.
2014-09-20 17:11:18 +02:00
thefiddler
747d86bafb
[Common] Avoid GC in DeviceCollection
...
`DeviceCollection.GetEnumerator()` now returns a struct IEnumerable<T>
directly to avoid boxing.
Additionally, we can now use `DeviceCollection[int]` as a shortcut to
`FromIndex(int)`.
2014-09-20 17:10:05 +02:00
thefiddler
2b3a4c578a
Merge pull request #181 from thefiddler/evdev
...
[Linux] Implement evdev joystick driver
2014-09-20 13:53:12 +02:00
thefiddler
a1c3950b8a
Merge pull request #180 from thefiddler/mac_joystick
...
[Mac] Improve joystick driver
2014-09-20 13:53:08 +02:00
thefiddler
179c82387c
[Linux] Fixed byteswapping in joystick Guid calculation
2014-09-18 01:20:21 +02:00
thefiddler
3bf29b074c
[Input] Fixed debug display of Back gamepad button
2014-09-18 01:20:21 +02:00
thefiddler
21deea87d8
[Linux] Correctly set evdev packet number
2014-09-18 01:20:21 +02:00
thefiddler
129fb81224
[Linux] Implemented evdev joystick polling
2014-09-18 01:20:21 +02:00
thefiddler
397bdda076
[Linux] Implemented evdev joystick device discovery
2014-09-18 01:20:21 +02:00
thefiddler
8642177c30
[Mac] Use DeviceCollection
...
This reduces code duplication significantly.
2014-09-18 01:16:41 +02:00
thefiddler
2c26df8d93
[Input] Added From* overloads with out parameters
2014-09-18 01:16:40 +02:00
thefiddler
2a6579032e
[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.)
2014-09-18 01:16:40 +02:00
thefiddler
fbedac9a16
[Mac] Fixed Joystick Hat calculations
2014-09-18 01:16:40 +02:00
thefiddler
b9f7f2c242
[Mac] Sort joystick elements like SDL2
...
GamePad configuration database is now working correctly on Mac.
2014-09-18 01:16:40 +02:00
thefiddler
9c67265832
[Mac] Added CFGetTypeID method
2014-09-18 01:16:40 +02:00
thefiddler
4231cf2cdd
[Mac] Use cookies to match HID joystick elements
2014-09-18 01:16:40 +02:00
thefiddler
d4c6b2e699
[Mac] Fixed joystick Guid calculation
...
The result now matches the output of SDL2 as well as the entries in the
GamePad configuration database.
2014-09-18 01:16:40 +02:00
thefiddler
41f1f92cdf
Merge pull request #161 from thefiddler/win_xinput
...
[Win] HID-based IJoystickDriver2; improve XInput2 IGamePadDriver
2014-09-18 01:14:50 +02:00
thefiddler
10dd7e8227
[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.
2014-09-17 23:48:08 +02:00
thefiddler
4337288d74
[Win] Removed unused code
2014-09-17 18:43:29 +02:00
thefiddler
8237b889c9
[Win] Fixed XInput y-axis and trigger range
2014-09-17 18:42:47 +02:00
thefiddler
ea66a828bf
[Win] Suppressed spurious warning
2014-09-17 18:42:27 +02:00
thefiddler
c29509838d
Merge pull request #176 from Robmaister/develop
...
Added Matrix3[d].Add and Matrix4[d].CreateFromRotationMatrix
2014-09-16 14:17:58 +02:00
thefiddler
73f255ed14
[Input] Fixed bitwise test for GamePadAxes
2014-09-12 10:23:54 +02:00
thefiddler
2df0496c44
[SDL] Correctly byteswap Guid
...
Fixes an issue where GamePad Guids would fail to be matched with the
Guids in the configuration database.
2014-09-12 08:43:20 +02:00
thefiddler
71e5a4f4f3
[Input] Add GamePadCapabilities.IsMapped
2014-09-12 08:42:26 +02:00
Robert Rouhani
7a4dfcf40d
Changed Matrix4[d].CreateFromRotationMatrix to a new constructor.
2014-09-11 12:33:34 -04:00
thefiddler
742149412e
[Input] Fixed button/hat->trigger mapping scale
2014-09-11 12:51:50 +02:00
thefiddler
0735700d50
[Input] Added P880 win32 gamepad configuration
2014-09-11 12:51:50 +02:00
thefiddler
bf9f7c9479
[Input] Fixed trigger ToString()
2014-09-11 12:51:50 +02:00
thefiddler
6c2a6336b5
[Input] Added missing Back button in ToString()
2014-09-11 12:51:50 +02:00
thefiddler
0d4fddd9b4
[Win] Skip devices with too many axes
...
These are likely not joysticks / gamepads, but multitouch-capable HID
devices.
2014-09-11 12:51:50 +02:00