Fri, 02 Aug 2019 17:20:00 -0700Fix nullptr crash on android
Sam Lantinga [Fri, 02 Aug 2019 17:20:00 -0700] rev 12983
Fix nullptr crash on android

nullcheck the device coming back from InputDevice.getDevice(deviceId) in new code added to sdlactivity.onkey.


java.lang.NullPointerException:
at org.libsdl.app.SDLSurface.onKey (SDLActivity.java:1793)
at android.view.View.dispatchKeyEvent (View.java:13321)
at android.view.ViewGroup.dispatchKeyEvent (ViewGroup.java:1912)
at android.view.ViewGroup.dispatchKeyEvent (ViewGroup.java:1912)
at android.view.ViewGroup.dispatchKeyEvent (ViewGroup.java:1912)
at android.view.ViewGroup.dispatchKeyEvent (ViewGroup.java:1912)
at com.android.internal.policy.DecorView.superDispatchKeyEvent (DecorView.java:685)
at com.android.internal.policy.PhoneWindow.superDispatchKeyEvent (PhoneWindow.java:1869)
at android.app.Activity.dispatchKeyEvent (Activity.java:3447)
at org.libsdl.app.SDLActivity.dispatchKeyEvent (SDLActivity.java:496)

@dang @saml @dave

Fri, 02 Aug 2019 17:19:50 -0700Fix bug where the wrong button was the default in the old message box because buttons were added backwards, breaking the indexing used by GetButtonIndex.
Sam Lantinga [Fri, 02 Aug 2019 17:19:50 -0700] rev 12982
Fix bug where the wrong button was the default in the old message box because buttons were added backwards, breaking the indexing used by GetButtonIndex.

Add messagebox flags to explicilty request left-to-right button order or right-to-left. If neither is specified it'll be some platform default.

Fri, 02 Aug 2019 17:12:49 -0700Added support for a few controllers on Android
Sam Lantinga [Fri, 02 Aug 2019 17:12:49 -0700] rev 12981
Added support for a few controllers on Android

Fri, 02 Aug 2019 00:35:05 +0300fix copy+paste mistakes in commit 9b0e5c555c0f (CVE-2019-7637 fix): SDL-1.2
Ozkan Sezer [Fri, 02 Aug 2019 00:35:05 +0300] rev 12980
fix copy+paste mistakes in commit 9b0e5c555c0f (CVE-2019-7637 fix):

http://hg.libsdl.org/SDL/rev/9b0e5c555c0f made copy+paste mistakes which
resulted in windows versions failing to set video mode.

Thu, 01 Aug 2019 18:22:12 -0300Add a windowID field to SDL_TouchFingerEvent (bug #4331).
Alex Szpakowski [Thu, 01 Aug 2019 18:22:12 -0300] rev 12979
Add a windowID field to SDL_TouchFingerEvent (bug #4331).

This is unimplemented on some platforms and will cause compile errors when building those platform backends for now.

Thu, 01 Aug 2019 17:41:40 +0300configury: allow libusb-less hidapi for macosx.
Ozkan Sezer [Thu, 01 Aug 2019 17:41:40 +0300] rev 12978
configury: allow libusb-less hidapi for macosx.

Wed, 31 Jul 2019 23:50:10 +0300clean-up/tidy-up os2/SDL_syscdrom.c SDL-1.2
Ozkan Sezer [Wed, 31 Jul 2019 23:50:10 +0300] rev 12977
clean-up/tidy-up os2/SDL_syscdrom.c

Wed, 31 Jul 2019 23:37:02 +0300use WIN_IsWindowsVistaOrGreater() from core/windows for isVistaOrNewer
Ozkan Sezer [Wed, 31 Jul 2019 23:37:02 +0300] rev 12976
use WIN_IsWindowsVistaOrGreater() from core/windows for isVistaOrNewer

Wed, 31 Jul 2019 20:55:02 +0300updated Watcom-Win32.zip: SDL-1.2
Ozkan Sezer [Wed, 31 Jul 2019 20:55:02 +0300] rev 12975
updated Watcom-Win32.zip:

- Adjusted the dll-exported functions (calling convention / _cdecl
symbol decoration mess), so that the applications linked against
mingw- or msvc-built SDL.dll can run with the watcom-built dll.
- Builds current SDL-1.2 branch, tested by cross-compiling on Linux.
- The makefile builds the dll by default, and links statically to
watcom C libraries instead of their dll versions (dropped '-br').
- Included the needed directx headers (ddraw.h, dinput.h, dsound.h)
based on Wine project (LGPL). (Can still override using DXDIR=xx
on the wmake cmdline..)

Wed, 31 Jul 2019 12:20:55 -0400hidapi: Add SDL_hidapi.c, allows support for multiple hidapi backends.
Ethan Lee [Wed, 31 Jul 2019 12:20:55 -0400] rev 12974
hidapi: Add SDL_hidapi.c, allows support for multiple hidapi backends.

This is currently supported on Linux and macOS. iOS and Android are not
supported at all, Windows support could be added with some changes to the libusb
backend. The Visual Studio and Xcode projects do not use this feature.

Based on Valve Software's hid.cpp, written in collaboration with Andrew Eikum.