Thu, 12 Mar 2020 19:47:28 -0700Added support for SDL hints in the game controller mapping database
Sam Lantinga <slouken@libsdl.org> [Thu, 12 Mar 2020 19:47:28 -0700] rev 13610
Added support for SDL hints in the game controller mapping database

Tue, 10 Mar 2020 18:25:47 -0700Updated SDL to version 2.0.13 for development builds
Sam Lantinga <slouken@libsdl.org> [Tue, 10 Mar 2020 18:25:47 -0700] rev 13609
Updated SDL to version 2.0.13 for development builds

Tue, 10 Mar 2020 18:35:53 -0700Added tag release-2.0.12 for changeset 355a4f94a782
Sam Lantinga <slouken@libsdl.org> [Tue, 10 Mar 2020 18:35:53 -0700] rev 13608
Added tag release-2.0.12 for changeset 355a4f94a782

Tue, 10 Mar 2020 18:35:31 -0700Backed out changeset 7ca4a9de2ae4 release-2.0.12
Sam Lantinga <slouken@libsdl.org> [Tue, 10 Mar 2020 18:35:31 -0700] rev 13607
Backed out changeset 7ca4a9de2ae4

Tue, 10 Mar 2020 18:34:33 -0700Removed Xbox HIDAPI debug code
Sam Lantinga <slouken@libsdl.org> [Tue, 10 Mar 2020 18:34:33 -0700] rev 13606
Removed Xbox HIDAPI debug code

Tue, 10 Mar 2020 18:25:47 -0700Updated SDL to version 2.0.13 for development builds
Sam Lantinga <slouken@libsdl.org> [Tue, 10 Mar 2020 18:25:47 -0700] rev 13605
Updated SDL to version 2.0.13 for development builds

Tue, 10 Mar 2020 18:17:41 -0700Added tag release-2.0.12 for changeset 78d0bb6f3b8f
Sam Lantinga <slouken@libsdl.org> [Tue, 10 Mar 2020 18:17:41 -0700] rev 13604
Added tag release-2.0.12 for changeset 78d0bb6f3b8f

Tue, 10 Mar 2020 17:35:14 -0700Read the buttons on Nintendo Switch and GameCube controllers as they are labeled, and swap them if the applications wants positional button data instead.
Sam Lantinga <slouken@libsdl.org> [Tue, 10 Mar 2020 17:35:14 -0700] rev 13603
Read the buttons on Nintendo Switch and GameCube controllers as they are labeled, and swap them if the applications wants positional button data instead.

Tue, 10 Mar 2020 16:41:42 -0700Fixed bug 4921 - Do not swap B/X buttons on GameCube controller unless it's requested
Sam Lantinga <slouken@libsdl.org> [Tue, 10 Mar 2020 16:41:42 -0700] rev 13602
Fixed bug 4921 - Do not swap B/X buttons on GameCube controller unless it's requested

Ethan Lee

Basically replicating the solution of the Switch Controller's button label issue. Physical layout should take priority unless it's explicitly requested by the user or application!

Tue, 10 Mar 2020 16:29:28 -0700Fixed bug 5022 - SDL_iconv_string can get stuck in an infinite loop when encountering invalid characters
Sam Lantinga <slouken@libsdl.org> [Tue, 10 Mar 2020 16:29:28 -0700] rev 13601
Fixed bug 5022 - SDL_iconv_string can get stuck in an infinite loop when encountering invalid characters

ciremo6483

In `SDL_iconv_string` the `while (inbytesleft > 0)` loop can end up in a state where it never terminates because the library `iconv` function called from `SDL_iconv` doesn't consume any bytes.

This happened when a `WCHAR_T` input string was being converted to `UTF-8` but contained invalid characters. It would first It would first skip a few bytes due to `case SDL_ICONV_EILSEQ` but when there were 3 bytes remaining of `inbytesleft` `iconv` just didn't consume anything more (but didn't throw an error either).

It just so happens that the Microsoft Classic IntelliMouse `product_string` contains such invalid characters (`"MicrosoftÆ Classic IntelliMouseÆ"`), meaning the function would get stuck with said mouse plugged in.

A fix for this would be to check if `inbytesleft` was unchanged after an iteration and in that case either decrement the counter like when `SDL_ICONV_EILSEQ` is returned or simply break the loop.