Sat, 10 Mar 2018 21:16:14 -0800Fix ARM builds with MSVC
MichaƂ Janiszewski [Sat, 10 Mar 2018 21:16:14 -0800] rev 11927
Fix ARM builds with MSVC

Sat, 10 Mar 2018 21:13:50 -0800Temporary fix for bug 3432 - macOS 10.12: small scrolls (1 wheel notch) don't generate events
Sam Lantinga [Sat, 10 Mar 2018 21:13:50 -0800] rev 11926
Temporary fix for bug 3432 - macOS 10.12: small scrolls (1 wheel notch) don't generate events

Eric Wasylishen

This bug was reintroduced by https://hg.libsdl.org/SDL/rev/68a80d7afec3

The steps to reproduce are the same: run the "testrelative" SDL demo with "--info all",
connect a USB mouse with a scroll wheel, and roll the scroll wheel one "notch". You'll get log output like:

testdraw2[1644:67222] INFO: SDL EVENT: Mouse: wheel scrolled 0 in x and 0 in y (reversed: 1) in window 1

As far as I can tell macOS doesn't have an API for getting the number of "wheel notches"; I get a deltaY of 0.100006 for one "notch", and it's heavily accelerated (if you roll the wheel quickly you'll get large deltas). So NSEvent's deltaY is only meant to be used for scrolling a scroll view, with the given distance in points, not something like selecting an item in a game.

Here's a temporary patch that at restores the foor/ceil in Cocoa_HandleMouseWheel.
Not ideal, but at least it restores the ability to scroll one notch of a mousewheel.

Thu, 08 Mar 2018 16:32:22 -0800Delay delivery of the pause button release on MFI controllers so it doesn't happen in the same frame as the button press
Sam Lantinga [Thu, 08 Mar 2018 16:32:22 -0800] rev 11925
Delay delivery of the pause button release on MFI controllers so it doesn't happen in the same frame as the button press

Wed, 07 Mar 2018 18:10:01 -0800Added a mapping for the latest firmware for the Xbox One S controller on Android
Sam Lantinga [Wed, 07 Mar 2018 18:10:01 -0800] rev 11924
Added a mapping for the latest firmware for the Xbox One S controller on Android

Wed, 07 Mar 2018 18:09:58 -0800Include a USB VID/PID for Apple MFI controllers
Sam Lantinga [Wed, 07 Mar 2018 18:09:58 -0800] rev 11923
Include a USB VID/PID for Apple MFI controllers
This is just placeholder VID/PID, but allows code that works with VID/PID to identify the MFI controllers easily.

Wed, 07 Mar 2018 13:30:40 -0800Added SDL_GameControllerMappingForDeviceIndex() to get the mapping for a controller before it's opened
Sam Lantinga [Wed, 07 Mar 2018 13:30:40 -0800] rev 11922
Added SDL_GameControllerMappingForDeviceIndex() to get the mapping for a controller before it's opened

Tue, 06 Mar 2018 14:51:50 -0800Try to dynamically create a default Android game controller mapping based on the buttons and axes on the controller.
Sam Lantinga [Tue, 06 Mar 2018 14:51:50 -0800] rev 11921
Try to dynamically create a default Android game controller mapping based on the buttons and axes on the controller.
Include the controller USB VID/PID in the GUID where possible, as we do on other platforms.

Fri, 02 Mar 2018 22:53:25 -0800Progress fixing bug 4100 - errors and warnings after changeset 11917
Sam Lantinga [Fri, 02 Mar 2018 22:53:25 -0800] rev 11920
Progress fixing bug 4100 - errors and warnings after changeset 11917

Ozkan Sezer 2018-03-02 20:02:37 UTC
http://hg.libsdl.org/SDL/rev/5ce3f8bf8381 resulted in an error and
two warnings when compiled with mingw.

1. Error from SDL_windowstaskdialog.h:
In file included from src/video/windows/SDL_windowsmessagebox.c:29:0:
src/video/windows/SDL_windowstaskdialog.h:23:54: error: expected ')' before 'HWND'

This is fixed by removing unnecessary annotations:

2. Warning from SDL_assert.c:
src/SDL_assert.c: In function 'SDL_ExitProcess':
src/SDL_assert.c:138:1: warning: 'noreturn' function does return

Indeed ExitProcess() is prototyped with DECLSPEC_NORETURN, but
TerminateProcess() is not. This can be rectified by adding an
exit() call in there. Do NOTE, however, that requires building
with a libc:

3. Warning from SDL_windowsmessagebox.c:
src/video/windows/SDL_windowsmessagebox.c: In function 'WIN_ShowMessageBox':
src/video/windows/SDL_windowsmessagebox.c:513:9: warning: 'nCancelButton' may be used uninitialized in this function

My lazy solution was manually initializing nCancelButton to 0.

Fri, 02 Mar 2018 22:48:15 -0800Fixed bug 4101 - configure needs regenerating after changeset 11894
Sam Lantinga [Fri, 02 Mar 2018 22:48:15 -0800] rev 11919
Fixed bug 4101 - configure needs regenerating after changeset 11894

Fri, 02 Mar 2018 12:08:18 -0800Fixed setting the layer drawable size
Sam Lantinga [Fri, 02 Mar 2018 12:08:18 -0800] rev 11918
Fixed setting the layer drawable size
Without this change the drawable had a size of 0 and the metal renderer asserted because the projection matrix wasn't set.