Commit graph

228 commits

Author SHA1 Message Date
Jarl Gullberg ee09c798e4 Merge pull request #565 from leezer3/JoystickAxis
Change: Bump joystick axis limit to 64 & remove JoystickAxis enum
2017-07-16 22:31:16 +02:00
Christopher Lees d8512ac2fc Change: Use MaxAxes, not inlined constants 2017-07-16 20:49:00 +01:00
Christopher Lees 77bbb99f72 Change: Remove unnecessary assignments from OS-X HID driver 2017-07-13 19:06:43 +01:00
Christopher Lees d0880ab1e6 Change: Remove unncessary int assignment from GamePadConfiguration.cs 2017-07-12 22:16:55 +01:00
Jarl Gullberg 31faf624da Merge pull request #571 from UnknownShadow200/develop
Fix X11 drag-n-drop returning wrong filename, and crashing
2017-07-12 15:28:34 +02:00
Jarl Gullberg 0c585b685c Merge pull request #567 from Frassle/issue259
Wait for XEvents when changing window size
2017-07-12 15:20:14 +02:00
UnknownShadow200 65e59d9f42 Fix X11 drag-n-drop returning wrong filename, and crashing
Wrong filename being returned was due to the filename being URL encoded.
Crashing was due to the offset being past the end of the buffer returned from Marshal.AllocHGlobal.

Fixes #570.
2017-07-12 17:15:33 +10:00
Christopher Lees b1450bc2f2 Change: Simplify bounds checking 2017-07-11 12:38:05 +01:00
Christopher Lees ac9a1fb697 New: Add 4-position hat switches to Windows HID driver 2017-07-11 11:58:04 +01:00
Christopher Lees 471dd5bf18 Fix: Some joystick hats not returning centered correctly on Windows HID 2017-07-11 11:47:47 +01:00
Fraser Waters a7f43f3f05 Wait for XEvents when changing window size
Fixes #259

Reading from GameWindow.ClientSize after assigning a new value to it
could often return the old value on X systems.
This was due to ClientSize being set by a ConfigureNotify event sent
by the X server that we would sometimes not during the ProcessEvents
started by the ClientSize setter (due to the asynchronous nature or
client/server).

This commit adds a way to wait for a specific event type in
ProcessEvents. Just before calling ProcessEvents in the ClientSize
setter we set the wait type to ConfigureNotify. This should ensure
that ClientSize will not return until we've received the new size of
the window from the X server and updated our internal values for the
size of the window. Thus when ClientSize is then read immediately
after it is always the new size.

It's likely that some of the other property setters we have which call
ProcessEvents need a similar fix.
2017-07-10 16:57:40 +01:00
Christopher Lees 5c11f61729 Add XML-doc comments & remove unused imports. 2017-07-10 11:35:43 +01:00
Christopher Lees 5abbd6c57c Change: Tweak GamePadConfigurationSource constructor to be clearer 2017-07-10 11:19:56 +01:00
Christopher Lees d00a2f982d Change: Bump joystick axis limit to 64 & remove JoystickAxis enum 2017-07-09 22:57:51 +01:00
Jarl Gullberg 127c6fd67d
Transformed compatible properties into auto-properties where possible. 2017-07-07 11:52:32 +02:00
Christopher Lees 89ed072d77 Fix file drop string marshalling 2017-07-06 21:44:14 +01:00
Jarl Gullberg af416b6e3a
Replaced tabs with four spaces across the codebase. 2017-07-05 20:28:30 +02:00
Jarl Gullberg 3cf88759eb Merge pull request #559 from Nihlus/purge-region
Purge region declarations
2017-07-05 20:22:59 +02:00
Jarl Gullberg ad173ec802
Removed commented region. 2017-07-05 14:23:06 +02:00
Jarl Gullberg f11ecd016d
Removed region declarations across the codebase. 2017-07-05 14:09:27 +02:00
Jarl Gullberg a67340e2b3
Added deterministic option to all relevant projects. 2017-07-05 13:49:08 +02:00
Jarl Gullberg cc928f0e51 Merge pull request #543 from VPeruS/fix-mouse-wheel
Fix interop for wheel events(MacOS)
2017-07-05 13:43:38 +02:00
varon 4eb02d3012 Merge pull request #553 from VPeruS/interop-macos-set-position
Wrong cast for interop when setting mouse position(MacOS)
2017-07-04 21:42:36 +02:00
varon 09bd2d5d10 Merge pull request #542 from VPeruS/drag-and-drop
Drag and drop support
2017-07-04 21:40:26 +02:00
varon 7bf31b18e1 Merge pull request #549 from Nihlus/remove-obsolete-code
Remove code marked obsolete
2017-07-04 21:37:15 +02:00
Jarl Gullberg 13494f515c
Merge branch 'develop' into glwidget-gtk3 2017-06-25 13:45:05 +02:00
Jarl Gullberg 2f1e49c667
Set GLXAttribute access to public. 2017-06-25 13:44:01 +02:00
VPeruS 3f1d888ef4 Wrong cast for interop when setting position(MacOS) 2017-06-25 03:43:48 +03:00
Jarl Gullberg 6d96b57deb
Removed obsolete VSync property. 2017-06-22 18:34:49 +02:00
Jarl Gullberg 10859fbbe7
Removed obsolete input driver. 2017-06-22 18:34:49 +02:00
Jarl Gullberg 5474ee4426
Removed obsolete keyboard driver. 2017-06-22 18:34:49 +02:00
Jarl Gullberg c43a4f03f1
Removed obsolete joystick driver. 2017-06-22 18:34:49 +02:00
Jarl Gullberg d3e831038d
Removed obsolete mouse driver. 2017-06-22 18:34:49 +02:00
Jarl Gullberg a5581d94af
Removed obsolete functions which accessed the obsolete joystick driver. 2017-06-22 18:34:48 +02:00
Jarl Gullberg 8719556315
Removed obsolete legacy joystick driver. 2017-06-22 18:34:48 +02:00
Jarl Gullberg 92141295cd
Removed obsolete legacy input driver. 2017-06-22 18:34:48 +02:00
Jarl Gullberg 5f9bf7fea3
Removed obsolete compatibility properties. 2017-06-22 18:34:48 +02:00
Jarl Gullberg aba454288f
Removed obsolete INativeGLWindow class. 2017-06-22 18:34:48 +02:00
Jarl Gullberg da6682711a
Removed obsolete CreateDummyContext functions and added constructor
constructor comments which explain how to create a dummy context.
2017-06-22 18:34:48 +02:00
Jarl Gullberg 7601a86f6d
Removed obsolete compatibiliy fields. 2017-06-22 18:34:48 +02:00
Jarl Gullberg 86189c2fc4
Removed warning disables. 2017-06-22 18:34:48 +02:00
Jarl Gullberg 7b72e2d156
Removed obsolete compatibility wrapper functions. 2017-06-22 18:34:48 +02:00
Jarl Gullberg 11a442037d
Removed obsolete compatibility function. 2017-06-22 18:34:48 +02:00
Jarl Gullberg 289dd1749a
Removed obsolete Matrix functions. 2017-06-22 18:34:48 +02:00
Jarl Gullberg b4b5016597
Removed CreateGraphicsContext helper wrapper. 2017-06-22 18:34:48 +02:00
Jarl Gullberg 020f20a6ed
Removed obsolete Mult functions and renamed region. 2017-06-22 18:34:48 +02:00
Jarl Gullberg ef71a1ed38
Removed obsolete property. 2017-06-22 18:34:48 +02:00
Jarl Gullberg 866d46da53
Removed obsolete multiplication functions and renamed region. 2017-06-22 18:34:48 +02:00
Jarl Gullberg 05ee9a11f5
Removed obsolete property. 2017-06-22 18:34:48 +02:00
Jarl Gullberg 0f3de7e1bc
Removed obsolete methods from vector classes. 2017-06-22 18:34:48 +02:00
Jarl Gullberg b26bc3f158
Removed obsolete constructors from Vector2. 2017-06-22 18:34:47 +02:00
Jarl Gullberg eab5028fe6
Removed obsolete mathematics class. 2017-06-22 18:34:47 +02:00
Jarl Gullberg c1da0f0434
Removed obsolete property. 2017-06-22 18:34:47 +02:00
Jarl Gullberg 2d90e61fa5
Removed obsolete constructor. 2017-06-22 18:34:47 +02:00
Jarl Gullberg bac01afe00
Removed unused and obsolete fields. 2017-06-22 18:34:47 +02:00
Jarl Gullberg 74e22142cb
Removed obsolete SetWindowAttributes structure. 2017-06-22 18:34:47 +02:00
Vlad K a3ca402168 Turn comments into XML docs. Change NSDragOperation visibility 2017-06-21 23:08:34 +03:00
Vlad K 9486b4963b Code sanity 2017-06-21 22:10:11 +03:00
Vlad K eb951d8569 Delete region keyword 2017-06-21 22:07:32 +03:00
Vlad K 280fa4b77d Ansi to Auto 2017-06-19 00:20:07 +03:00
Vlad K aba85d479c Some docs 2017-06-19 00:19:11 +03:00
Vlad K 527efca095 SDL2 rewrite c string to c# shtring + some docs 2017-06-18 23:44:47 +03:00
Vlad K 1a20ca5245 Rename Drop event, remove licenses 2017-06-18 22:37:16 +03:00
Jarl Gullberg f5acd206d7
Set XVisualInfo to public. 2017-06-18 21:16:21 +02:00
Jarl Gullberg b207829e80 Merge pull request #541 from varon/malcomstill-pr-471v2
Updated Linux/KMS platform to work with recent versions of libinput / Fix for Linux/KMS rendering glitches
2017-06-18 17:16:03 +02:00
VPeruS fc5c7be51a Fix interop for wheel events 2017-06-17 17:30:01 +03:00
varon 6440ca3cf9 Merge pull request #540 from VPeruS/macx64-cursor-fix
Macx64 cursor fix
2017-06-16 21:46:27 +02:00
Vlad K 77a2a5c8b3 Fix wrong path 2017-06-16 22:38:40 +03:00
Vlad K c78b110110 MacOS d&d support 2017-06-16 22:10:04 +03:00
Vlad K dc2f4fef21 Add Xdnd support 2017-06-16 22:09:15 +03:00
Vlad K c65f1fb7bc Initial d&d x11 event support 2017-06-16 22:09:06 +03:00
Vlad K 9062f8ed30 Clean up 2017-06-16 22:08:33 +03:00
Vlad K 90e9c28cbd Added Windows D&D support 2017-06-16 22:08:24 +03:00
Vlad K 18dd603696 Fix of memory leak 2017-06-16 22:07:11 +03:00
Vlad K e792bd80fe Add initial d&d support for GameWindow. Add SDL2 d&d support 2017-06-16 22:02:55 +03:00
VPeruS 52206ec13b Add requsted changes 2017-06-14 00:56:42 +03:00
Malcolm Still 543bdc107c Remove Fixed24 struct 2017-06-13 16:53:57 -05:00
Malcolm Still d360026dfe Remove DRM cursor on Dispose. 2017-06-13 16:53:57 -05:00
Malcolm Still 612b86bd5a Moving the LockSurface after waiting for the page flip stops the rendering glitches on Linux/KMS. 2017-06-13 16:53:57 -05:00
Malcolm Still f08d210ba3 Some casts required in the absolute motion handler now that the query functions return doubles. 2017-06-13 16:53:57 -05:00
Malcolm Still 64e6346ac4 Mistake in change. The Debug.Print statement should not be there. 2017-06-13 16:53:57 -05:00
Malcolm Still bbbbc75e75 Relative pointer motion should use the relative (Delta) query functions. 2017-06-13 16:53:57 -05:00
Malcolm Still 9494457c26 Use new axis querying functions to update mouse scroll state. 2017-06-13 16:53:57 -05:00
Malcolm Still fa8f19a40a Use new Libinput.CreateContext and Libinput.AssignSeat functions in Setup(). 2017-06-13 16:53:57 -05:00
Malcolm Still 8558e86e81 Removed @ symbol from IntPtr name 2017-06-13 16:53:57 -05:00
Malcolm Still 5db38956d6 Pointer coordinate query functions now return doubles. 2017-06-13 16:53:57 -05:00
Malcolm Still 0f65acc165 libinput v0.8 removed libinput_event_pointer_get_axis and replace with libinput_event_pointer_has_axis and libinput_event_pointer_get_axis_value now takes a specified PointerAxis 2017-06-13 16:53:56 -05:00
Malcolm Still 17a7464793 libinput v0.4 removed libinput_udev_create_for_seat and replaced with two functions libinput_udev_create_context and libinput_udev_assign_seat to separately create a context and assign it a seat name. 2017-06-13 16:53:56 -05:00
VPeruS a68581118e HIRect to NSRect. HISize to NSSize 2017-06-13 05:38:20 +03:00
VPeruS d13451d181 Change HIPoint to NSPoint, hipoint wasn't arch independent 2017-06-13 05:31:31 +03:00
VPeruS 72320ad181 Fix incorect type cast 2017-06-13 05:31:15 +03:00
Vperus 85541f6449 Fix macos x64 wrong mouse input 2017-06-13 05:30:49 +03:00
David Jeske 6afb2ad58f Revert "Fix duplicate scroll input on windows 10"
This reverts commit 9ef456bf9a.
2017-06-12 09:16:32 -07:00
David Jeske 2d702337d2 Merge branch 'issue_488_input_events_fired_more_than_once' into 488_fix2 2017-06-12 09:16:01 -07:00
David Jeske 3bbd31d66b Fix SetCapture() to use child_window instead of window. As using window was causing spurious WM_MOUSELEAVE events. Also change other mouse events to return IntPtr.Zero when handled 2017-06-11 19:09:50 -07:00
David Jeske d5b43fb33c treat MouseMove events as handled by returning zero instead of calling DefWindowProc 2017-06-11 18:36:32 -07:00
varon f1fed27afd Merge pull request #536 from varon/win10-scroll-fix
Fix duplicate scroll input on windows 10
2017-06-12 01:37:06 +02:00
varon 2865cd8f45 Add pdb to nuget package 2017-06-12 01:14:07 +02:00
varon 9ef456bf9a Fix duplicate scroll input on windows 10 2017-06-12 00:19:39 +02:00
varon f8ac2565fa Merge pull request #532 from UnknownShadow200/develop
Directly expose the xyz and w fields of Quarternion and Quaterniond
2017-06-11 21:04:11 +02:00