Commit graph

7174 commits

Author SHA1 Message Date
Jarl Gullberg 41d4bef7e2
Restore removed using statements from minimal classes. 2017-07-20 21:41:38 +02:00
Jarl Gullberg 4f562820f4
Correct malformed formatting. 2017-07-20 21:36:47 +02:00
Jarl Gullberg 53d3ce354f
Remove now empty preprocessor statement. 2017-07-20 21:36:11 +02:00
Jarl Gullberg 094580daa3
Removed unused using statements. 2017-07-20 21:32:51 +02:00
Jarl Gullberg 5b03732763 Merge pull request #575 from Nihlus/cleanup-5-enforce-braces
Enforce the use of braces for conditional statements
2017-07-20 21:22:18 +02:00
Jarl Gullberg 0c1901a4dd Merge pull request #582 from Nihlus/disable-redundant-warnings
Disable superfluous warnings in native interop code.
2017-07-20 21:19:29 +02:00
Jarl Gullberg 72034a4528 Merge pull request #583 from Nihlus/add-missing-xml
Add missing XML comments for GLHelper.
2017-07-20 19:58:38 +02:00
Jarl Gullberg e4e7fba52a
Add comment for #pragma disable 2017-07-20 19:58:10 +02:00
Jarl Gullberg 04ef9fc262
Remove references to unused function GetWindowDC. 2017-07-20 17:49:44 +02:00
Jarl Gullberg f77734ae60
Removed redundant literal variable name specifier. 2017-07-20 17:31:36 +02:00
Jarl Gullberg 8dcb252dc9
Corrected preprocessor alignment. 2017-07-20 17:30:46 +02:00
Jarl Gullberg 2ffc67b8ae
Corrected malformed formatting in GameWindow. 2017-07-20 17:29:12 +02:00
Jarl Gullberg e101f121b2
Add missing XML comments for GLHelper. 2017-07-20 17:26:08 +02:00
Jarl Gullberg ef96e7ab15 Merge pull request #581 from Nihlus/correct-xml-comment
Corrected XML comments to reflect now removed JoystickAxis enumeration.
2017-07-20 13:41:53 +02:00
Jarl Gullberg ba044162be Merge pull request #580 from Nihlus/remove-unused-field
Remove unused backing field from FileDropEventArgs.
2017-07-20 13:41:46 +02:00
Jarl Gullberg f4d09e030f
Disable superfluous warnings in native interop code. 2017-07-20 12:57:42 +02:00
Jarl Gullberg 56b51702c2
Corrected XML comments to reflect now removed JoystickAxis enumeration. 2017-07-20 12:49:03 +02:00
Jarl Gullberg 8974c0ee2b
Remove unused backing field from FileDropEventArgs. 2017-07-20 12:45:01 +02:00
Jarl Gullberg b653498d5f Merge pull request #577 from akrolsmir/develop
Fix broken Android and iOS builds
2017-07-19 19:50:31 +02:00
Austin Chen 3686203a6a Fix broken Android and iOS builds 2017-07-19 00:24:43 -07:00
Jarl Gullberg 4f60f95607
Enforced the use of braces for conditional statements. 2017-07-17 19:24:51 +02:00
Jarl Gullberg 52699104f9 Merge pull request #564 from Nihlus/cleanup-4-explicit-modifiers
Enforce use of explicit access modifiers
2017-07-17 19:07:16 +02:00
Jarl Gullberg 5f2d3144c4
Enforced use of explicit private modifiers. 2017-07-17 18:51:54 +02:00
Fraser Waters f1362eef2b Merge pull request #574 from Frassle/bind_settings
Update Generator.Bind default settings for new repo layout
2017-07-17 17:20:31 +01:00
Jarl Gullberg 4ff4874df9 Merge pull request #572 from Nihlus/converter-better-options
Replace bundled Mono.Options in Converter
2017-07-17 18:04:49 +02:00
Fraser Waters 812a4f83ab Update Generator.Bind default settings for new repo layout 2017-07-17 10:37:40 +01:00
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
Jarl Gullberg 11061bc172
Attempted AppVeyor compilation fix by target version bump. 2017-07-16 15:53:29 +02:00
Jarl Gullberg eaff349201
Renamed "Parser" to "XmlParser" to not conflict with the command line parser. 2017-07-16 15:40:22 +02:00
Jarl Gullberg aa3c256625
Bumped Mono.Cecil version to correct build errors. 2017-07-15 18:31:32 +02:00
Jarl Gullberg 997247302e
Updated and renamed README file. 2017-07-15 15:47:16 +02:00
Jarl Gullberg 36357873a7
Removed old options usage from Main.cs. 2017-07-15 15:42:51 +02:00
Jarl Gullberg e39a4cb48f
Implemented options class. 2017-07-15 15:40:03 +02:00
Jarl Gullberg eb53f2ce59
Bumped framework target of Generator.Convert and updated to v2 of CommandLineParser. 2017-07-15 15:23:04 +02:00
Jarl Gullberg f6ee6e2a03
Added CommandLineParser to Generator.Converter 2017-07-15 14:55:04 +02: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
Jarl Gullberg 1c5643f703 Merge pull request #568 from leezer3/JoystickPatch2
Fix: Some joystick hats not returning centered correctly on Windows HID
2017-07-11 13:52:21 +02: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 9ea1f55139 Merge pull request #563 from Nihlus/cleanup-3-auto-property
Transform compatible properties to auto-properties
2017-07-07 13:27:53 +02:00