Mon, 28 Aug 2017 10:03:39 -0700Fixed bug 2361 - [Android] Joysticks do not have unique IDs
Sam Lantinga <slouken@libsdl.org> [Mon, 28 Aug 2017 10:03:39 -0700] rev 11393
Fixed bug 2361 - [Android] Joysticks do not have unique IDs

David Brady

When I attempted to make a mapping file for Android gamepads, I quickly discovered that most of the ones that I have here show up as the same device (Broadcom Bluetooth HID), meaning that it was impossible to make mappings on Android, since every device looked the same.

This patch will check for the existence of the getDescriptor function added in Jelly Bean, and use it if it's there. The Android Dashboard says that the majority of Android phones should support this function, and doing it this way will not force us to bump up our API version.

Mon, 28 Aug 2017 09:54:16 -0700Fixed bug 2277 - Hardware keyboard control key sequences don't get reported
Sam Lantinga <slouken@libsdl.org> [Mon, 28 Aug 2017 09:54:16 -0700] rev 11392
Fixed bug 2277 - Hardware keyboard control key sequences don't get reported

chw

Control key sequences from hardware keyboards (wireless/USB/bluetooth) get not properly reported on Android devices.
The attached patch uses the idea from http://stackoverflow.com/questions/12337117/capture-all-ctrl-under-android to make control key sequences appear as normal SDL_KEYDOWN events instead of cooked text input.

Mon, 28 Aug 2017 09:51:25 -0700Fixed 3783 - Default libGL path for directFB on Linux differs from x11 path
Sam Lantinga <slouken@libsdl.org> [Mon, 28 Aug 2017 09:51:25 -0700] rev 11391
Fixed 3783 - Default libGL path for directFB on Linux differs from x11 path

Clayton Craft

The default path used by directfb for libGL is different than the default path used by x11 in SDL2:

./src/video/directfb/SDL_DirectFB_opengl.c:
path = "libGL.so";

./src/video/x11/SDL_x11opengl.c:
#define DEFAULT_OPENGL "libGL.so.1"

On at least one distro (Alpine Linux), libGL.so is not created (or more accurately the symlink to libGL.so.1 is not created). For consistency, the 'path' variable in SDL_DirectFB_opengl.c should patch the DEFAULT_OPENGL in SDL_x11opengl.c ("libGL.so.1")

Mon, 28 Aug 2017 09:41:00 -0700Fixed bug 3781 - unbalanced #pragma pack(pop) in close_code.h
Sam Lantinga <slouken@libsdl.org> [Mon, 28 Aug 2017 09:41:00 -0700] rev 11390
Fixed bug 3781 - unbalanced #pragma pack(pop) in close_code.h

Ozkan Sezer

Revision 288 (http://hg.libsdl.org/SDL/rev/2f5a6062db86) excluded the
Watcom compiler from forcing 4 byte structure packing in begin_code.h.
However, it missed updating close_code.h, which now has an unbalanced
#pragma pack(pop) if the compiler is Watcom. The issue seems to have
crawled into SDL2, too.

Mon, 28 Aug 2017 09:38:12 -0700Fixed bug 3781 - unbalanced #pragma pack(pop) in close_code.h SDL-1.2
Sam Lantinga <slouken@libsdl.org> [Mon, 28 Aug 2017 09:38:12 -0700] rev 11389
Fixed bug 3781 - unbalanced #pragma pack(pop) in close_code.h

Ozkan Sezer

Revision 288 (http://hg.libsdl.org/SDL/rev/2f5a6062db86) excluded the
Watcom compiler from forcing 4 byte structure packing in begin_code.h.
However, it missed updating close_code.h, which now has an unbalanced
#pragma pack(pop) if the compiler is Watcom. The issue seems to have
crawled into SDL2, too.

Mon, 28 Aug 2017 02:30:41 -0700Instantiate the CAMetalLayer so SDL_Vulkan_CreateSurface() doesn't fail
Sam Lantinga <slouken@libsdl.org> [Mon, 28 Aug 2017 02:30:41 -0700] rev 11388
Instantiate the CAMetalLayer so SDL_Vulkan_CreateSurface() doesn't fail
Error message was:
[mvk-info] MoltenVK version 0.18.2. Vulkan version 1.0.51.
[***MoltenVK ERROR***] VK_ERROR_INITIALIZATION_FAILED: On-screen rendering requires a view that is backed by a layer of type CAMetalLayer.
2017-08-28 02:17:29.579 testvulkan[95627:1716939] ERROR: SDL_Vulkan_CreateSurface(): vkCreateMacOSSurfaceMVK failed: VK_ERROR_INITIALIZATION_FAILED

Mon, 28 Aug 2017 01:59:53 -0700Fixed WinRT build after changing the header guard preprocessor symbol
Sam Lantinga <slouken@libsdl.org> [Mon, 28 Aug 2017 01:59:53 -0700] rev 11387
Fixed WinRT build after changing the header guard preprocessor symbol

Mon, 28 Aug 2017 01:42:18 -0700Fixed build when Wayland is dynamically loaded
Sam Lantinga <slouken@libsdl.org> [Mon, 28 Aug 2017 01:42:18 -0700] rev 11386
Fixed build when Wayland is dynamically loaded

Mon, 28 Aug 2017 00:54:02 -0700Fixed analyzer warning "Call to 'calloc' has an allocation size of 0 bytes"
Sam Lantinga <slouken@libsdl.org> [Mon, 28 Aug 2017 00:54:02 -0700] rev 11385
Fixed analyzer warning "Call to 'calloc' has an allocation size of 0 bytes"

Mon, 28 Aug 2017 00:51:14 -0700Fixed redefinition of typedef warnings and errors on BSD
Sam Lantinga <slouken@libsdl.org> [Mon, 28 Aug 2017 00:51:14 -0700] rev 11384
Fixed redefinition of typedef warnings and errors on BSD