Wed, 06 Nov 2013 11:23:24 -0300[Android] Fixes Bug 2041 - can't get SDL_QUIT event...
Gabriel Jacobo <gabomdq@gmail.com> [Wed, 06 Nov 2013 11:23:24 -0300] rev 7910
[Android] Fixes Bug 2041 - can't get SDL_QUIT event...

Thanks to Denis Bernard!

Also, changed the Android manifest so the app doesn't quit with orientation
changes, and made testgles.c exit properly on Android.

Wed, 06 Nov 2013 09:48:45 -0300Fixes Bug 1944 - Linux events, joysticks having only hat are not read
Gabriel Jacobo <gabomdq@gmail.com> [Wed, 06 Nov 2013 09:48:45 -0300] rev 7909
Fixes Bug 1944 - Linux events, joysticks having only hat are not read

Tue, 05 Nov 2013 21:01:25 -0800Fixed performance regression caused by the fix for bug 2158
Sam Lantinga <slouken@libsdl.org> [Tue, 05 Nov 2013 21:01:25 -0800] rev 7908
Fixed performance regression caused by the fix for bug 2158

Tue, 05 Nov 2013 20:07:39 -0300Adds Joystick support for Android
Gabriel Jacobo <gabomdq@gmail.com> [Tue, 05 Nov 2013 20:07:39 -0300] rev 7907
Adds Joystick support for Android

This bumps the build SDK level to 12 (up from 10). Runtime requirements remain
the same (at API level < 12 joystick support is disabled).

Also enables building SDL for armv7 and x86.

Sun, 03 Nov 2013 11:34:03 -0800Fixed bug 2180 - debian/rules: Makefiles should use tabs
Sam Lantinga <slouken@libsdl.org> [Sun, 03 Nov 2013 11:34:03 -0800] rev 7906
Fixed bug 2180 - debian/rules: Makefiles should use tabs

Joseph Carter

Whitespace in a makefile is consequential. In fact, it's part of the syntax. And at least a few versions of make puke on Makefiles with lines indented with spaces, not tabs. Obviously GNU make used on Debianish systems is not strictly among them, or this would fail. Even so, I cannot resist the urge to pedantically fix this, if only to get rid of the bright syntax error red coloration in vim. :)

Sun, 03 Nov 2013 11:27:06 -0800Fixed bug 2190 - test/testdrawchessboard.c line endings
Sam Lantinga <slouken@libsdl.org> [Sun, 03 Nov 2013 11:27:06 -0800] rev 7905
Fixed bug 2190 - test/testdrawchessboard.c line endings

Joseph Carter
test/testdrawchessboard.c checks out of hg with DOS line endings on non-dos systems. Fixed via:

perl -pi -e 's/\r//g' test/testdrawchessboard.c

Sun, 03 Nov 2013 11:13:06 -0800Fixed bug 2205 - SDL_GetAudioDeviceName returns default-device name on invalid index for default-device only drivers
Sam Lantinga <slouken@libsdl.org> [Sun, 03 Nov 2013 11:13:06 -0800] rev 7904
Fixed bug 2205 - SDL_GetAudioDeviceName returns default-device name on invalid index for default-device only drivers

norfanin

The audio_enumerateAndNameAudioDevicesNegativeTests test in testautomation_audio.c reports a failure for SDL_GetAudioDeviceName when called on a driver that has only the default device. SDL_GetNumAudioDevices reports 1, but SDL_GetAudioDeviceName does not check if the index passed by the caller is in that range in this case. For positive numbers anyway.

This can be reproduced with the dummy driver on Windows and Linux.

Sun, 03 Nov 2013 11:00:28 -0800Fixed bug 2187 - CMake is not adding src/core/linux/*.c to the build, linking to SDL results in errors.
Sam Lantinga <slouken@libsdl.org> [Sun, 03 Nov 2013 11:00:28 -0800] rev 7903
Fixed bug 2187 - CMake is not adding src/core/linux/*.c to the build, linking to SDL results in errors.

Daniel Ribeiro Maciel

CMake is not adding src/core/linux/*.c to the build, linking to SDL results in errors:

(...)/libSDL2-2.0.so.1.0.1: undefined reference to `SDL_UDEV_AddCallback'
(...)/libSDL2-2.0.so.1.0.1: undefined reference to `SDL_UDEV_Poll'
(...)/libSDL2-2.0.so.1.0.1: undefined reference to `SDL_UDEV_Init'
(...)/libSDL2-2.0.so.1.0.1: undefined reference to `SDL_UDEV_Quit'
(...)/libSDL2-2.0.so.1.0.1: undefined reference to `SDL_UDEV_DelCallback'
(...)/libSDL2-2.0.so.1.0.1: undefined reference to `SDL_UDEV_Scan'
collect2: error: ld returned 1 exit status

Sun, 03 Nov 2013 09:55:27 -0800Fixed bug 1990 - focus/keyboard events not generated correctly for multiple windows
Sam Lantinga <slouken@libsdl.org> [Sun, 03 Nov 2013 09:55:27 -0800] rev 7902
Fixed bug 1990 - focus/keyboard events not generated correctly for multiple windows

Mai Lavelle

I've recently tried to create multiple windows and process key events for them, and found that key events weren't being generated for most of the windows. After some investigating I've observed the following effects. All but the most recently created window experience these effects...

- a focus lost event is generated immediately after the focus gained event, even tho window still has focus
- key events report window id 0 rather than the id of the window which has focus, SDL thinks no window has focus?
- giving focus to a non SDL window and then selecting an SDL window causes events to be generated as expected, but only until focus changes again

Focus change events are queued and delayed (200 ticks) before they are dispatched. The problem occurs when a focus out and focus in event are received on the same tick. When these delayed events are dispatched they will be sent in the order determined by the window list rather than the order in which they are received.

The focus out dispatch is implemented by calling SDL_SetKeyboardFocus(NULL). This will remove focus from any window, regardless of whether it is the one originally targeted by the X11 event.

Since SDL_SetKeyboardFocus() will always dispatch a focus lost event as needed, the easiest solution is simply to only call SDL_SetKeyboardFocus(NULL) when SDL_GetKeyboardFocus() matches the target window.

Sun, 03 Nov 2013 09:42:23 -0800Clarified that SDL_memset4 is a 32-bit assignment and fixed a compiler warning
Sam Lantinga <slouken@libsdl.org> [Sun, 03 Nov 2013 09:42:23 -0800] rev 7901
Clarified that SDL_memset4 is a 32-bit assignment and fixed a compiler warning