|
7cf76ffb
|
2013-11-11T21:21:18
|
|
Fixed assertion failure when minimizing a fullscreen window.
|
|
75a23d99
|
2013-11-11T20:51:19
|
|
Fixed bug 2212 - SDL_SetTextInputRect has no effect on iOS
philhassey
Overview: While SDL_SetTextInputRect works perfectly to move my window out of the way of the virtual keyboard using SDL2/Android, on iOS this function has no effect.
Steps to Reproduce: Call SDL_SetTextInputRect with a rect near the bottom of the screen before calling SDL_StartTextInput.
Actual Results: The iOS virtual keyboard is displayed after calling SDL_StartTextInput, but the screen is not shifted to reveal the TextInputRect region.
Expected Results: The screen should be shifted to reveal the TextInputRect region (like with SDL2/Android.)
This patch implements SDL_SetTextInputRect for uikit/iOS.
It sets up notification handlers to respond to changes in the display of the keyboard. These handlers then change the frame of the view so it is moved out of the way of the keyboard as per SetTextInputRect.
|
|
cb31a80d
|
2013-11-11T20:42:59
|
|
Properly handle toggling fullscreen state when another fullscreen state change is in progress.
|
|
819148a8
|
2013-11-11T19:17:32
|
|
[X11] Fix up compilation when EGL headers are not present.
|
|
04afd61c
|
2013-11-11T11:12:43
|
|
[Android] Try to improve handling of some dpad+gamepad+keyboard corner cases
|
|
6dbed827
|
2013-11-11T10:59:15
|
|
[Android] Fixes Bug 2031 - Backspace Not Sending Events From On-Screen Keyboard
Thanks Joe LeVeque!
|
|
d37bad52
|
2013-11-11T10:49:48
|
|
[Android] Improve handling of keyboard, dpad and gamepad events
Thanks Dimitris Zenios for the report!
|
|
45a88b6a
|
2013-11-11T10:15:35
|
|
[Android] Fixes bug 2217, better joystick axes handling on Android.
|
|
f0692d65
|
2013-11-11T03:29:11
|
|
Fixed compiling with older Mac OS X SDK
|
|
2384ad5b
|
2013-11-11T03:12:50
|
|
Fixed compiling with ISO C90
|
|
2ceeb74e
|
2013-11-11T03:02:42
|
|
Don't minimize by default when in fullscreen desktop mode.
This fixes behavior with the new Mac OS X fullscreen space code, as well as improve behavior on Linux desktops.
The default for normal fullscreen mode is still to minimize because we're likely doing a mode switch and don't want to stick around as a borderless window in the background.
|
|
4c1322f6
|
2013-11-11T02:53:00
|
|
Added support for new style fullscreen transitions on Mac OS X
|
|
2b93fa08
|
2013-11-11T02:00:58
|
|
Turn off resizable flag by default, you can always pass the --resize command line option if you need it.
|
|
6ec3e690
|
2013-11-11T01:59:40
|
|
Fixed whitespace style
|
|
77a0d3fe
|
2013-11-11T01:59:20
|
|
Toggling fullscreen now takes fullscreen flags
|
|
893afbaf
|
2013-11-10T19:19:44
|
|
Fixed pool memory leak
|
|
b30e396b
|
2013-11-10T17:56:07
|
|
Fixed bug 1965 - Mac: dead code for supporting OS 10.4
Alex Szpakowski
The new patch removes all the truly obsolete code I could find. I tested on OS 10.8 and OS 10.5.
|
|
5821466c
|
2013-11-10T17:40:35
|
|
Fixed bug 2176 - SDL_CreateWindow(w=INT_MAX, h=INT_MAX) causes program to hang
Catch exceptions generated when trying to create a Cocoa window.
|
|
15a3bbcb
|
2013-11-10T20:38:50
|
|
[X11] Ignore both NotifyGrab and NotifyUngrab modes in FocusIn/FocusOut events
|
|
d21640e9
|
2013-11-10T20:13:27
|
|
Fixes bugs #2213 and #2214, improves the Android joystick code button handling
|
|
9228c845
|
2013-11-10T14:48:44
|
|
Fixed issue with dead key press/release events being filtered out.
|
|
0d39d090
|
2013-11-10T14:33:01
|
|
Hopefully fixed focus problems when handling a global hotkey on X11.
See this thread for details:
https://bugzilla.mozilla.org/show_bug.cgi?id=578265
|
|
e19f15dd
|
2013-11-10T14:10:00
|
|
Fixed bug 2067 - Window size limit calculation issue when exiting fullscreen on Windows
Also fixed minimize and maximize state detection for Windows.
|
|
b7553ae7
|
2013-11-10T11:51:06
|
|
Added project files for Visual Studio 2013
Added /arch:SSE code generation option to prevent SSE2 floating point functions from being implicitly called (which aren't linked in SDL)
|
|
842a9898
|
2013-11-10T17:50:40
|
|
Fixed joystick crash on Android if joystick subsystem not initialized.
|
|
305f64ba
|
2013-11-10T17:44:51
|
|
Replaced search loop with indexOf() in Java file.
|
|
bbf0f62b
|
2013-11-10T17:42:01
|
|
Replaced implicit boxing with explicit boxing in Java file.
|
|
2d671781
|
2013-11-10T17:40:26
|
|
Renamed a class in Java file for consistency.
|
|
802f83ff
|
2013-11-10T17:38:03
|
|
Removed not needed imports from Java file.
|
|
d6c1e381
|
2013-11-10T17:35:07
|
|
Added missing @Override annotations in Java file.
|
|
26ce68e8
|
2013-11-10T15:04:58
|
|
Changed motion listener implementation not to inherit from Activity class.
|
|
fda8d934
|
2013-11-10T14:58:48
|
|
Moved two function calls so they are only called if needed.
If the MotionEvent is not from joystick the return values are not needed.
|
|
aa337980
|
2013-11-10T14:50:37
|
|
Added a new unused key code from Android 4.4 (API 19).
|
|
0ab7624c
|
2013-11-10T14:47:05
|
|
Changed function to return -1 through SDL_Error() instead of plain -1.
|
|
82b3e7d2
|
2013-11-10T14:44:50
|
|
Changed function to be static.
The function keycode_to_SDL() is only used in this file.
|
|
6e3558cf
|
2013-11-10T14:42:41
|
|
Removed unused local variable to fix warning.
|
|
3f2e942f
|
2013-11-10T14:39:38
|
|
Fixed implicit function declarations by including the missing header.
|
|
bd1e1a93
|
2013-11-10T14:36:41
|
|
Corrected source comment.
|
|
92b12812
|
2013-11-10T00:38:37
|
|
Added Ben Henning's GSoC2013 work: premake build system.
|
|
52069757
|
2013-11-10T00:32:23
|
|
Added Apoorv Upreti's GSoC2013 work: visual test suite.
See visualtest/README.txt for details.
|
|
24731317
|
2013-11-09T01:15:17
|
|
Updated notes about building with the Windows 8 SDK: Get the DirectX SDK.
|
|
33cf925c
|
2013-11-09T01:08:21
|
|
Fixed signed/unsigned warning
|
|
550676d0
|
2013-11-09T00:56:05
|
|
Fixed signed/unsigned warning
|
|
976c8769
|
2013-11-08T14:05:23
|
|
Fixed bug 2172 - Window loses maximized state when activated
I still haven't figured out why my application is being minimized when I try to raise, it but my previous workaround is causing issues.
For now the correct way to raise and/or restore the window is as follows:
if ( !(SDL_GetWindowFlags( window ) & SDL_WINDOW_MINIMIZED) )
{
SDL_RaiseWindow( window );
}
if ( SDL_GetWindowFlags( window ) & SDL_WINDOW_MINIMIZED )
{
SDL_RestoreWindow( window );
}
I will investigate the window state change rules more fully in the future.
CR: Alfred Reynolds
|
|
7c7a9b7f
|
2013-11-08T14:05:19
|
|
Added a Linux game controller mapping for the Valve Streaming Gamepad
|
|
3523b409
|
2013-11-08T14:05:15
|
|
Made helper window creation depend on initializing the Haptics or Joystick subsystems.
|
|
faebe94c
|
2013-11-08T14:05:08
|
|
Mac: Fix a crash with SDL_MAC_NO_SANDBOX.
When we get a kCGEventTapDisabledByTimeout or
kCGEventTapDisabledByUserInput, the event tap would perform an invalid
memory access. void pointers are so fun.
This code only runs if you explicitly build with SDL_MAC_NO_SANDBOX.
|
|
e3e24bde
|
2013-11-08T14:04:59
|
|
Make sure the joystick count is correct when the added and removed events are dispatched, in case someone is watching for them with an event filter.
|
|
621c7f8f
|
2013-11-08T14:04:51
|
|
Added SDL_HINT_CTRL_CLICK_EMULATE_RIGHT_CLICK hint which controls whether ctrl+click should emulate a right click on OSX.
|
|
493fadd5
|
2013-11-08T14:04:35
|
|
Fixed spot where SDL was assuming that two displays having the same origin means they're the same display. Changed it to check for the same extents instead.
(Sam actually wrote this, I'm just reviewing and checking it in.)
|
|
95c67ed9
|
2013-11-07T19:15:58
|
|
Fixed bug 2219 - BMP loader do not handle big BITMAPINFOHEADER structure
Patrice Mandin
I encountered a problem trying to load a 8-bit paletted BMP file using SDL. This file was generated using GIMP 2.8. It has a big BITMAPINFOHEADER (0x6c bytes for biSize field), and thus the palette is incorrectly setup.
|
|
48e44f7f
|
2013-11-06T23:59:24
|
|
Fixed Windows compile error
|
|
3b050fc9
|
2013-11-06T23:35:08
|
|
Horizontal wheel support in windows
Lorenzo Pistone
this patch adds support for the horizontal wheel in Windows. It is shamelessly copied off the vertical wheel code, but I guess that that is a value added in consistency.
|
|
22770a8f
|
2013-11-06T11:23:24
|
|
[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.
|
|
e27248c2
|
2013-11-06T09:48:45
|
|
Fixes Bug 1944 - Linux events, joysticks having only hat are not read
|
|
1c9cc8c9
|
2013-11-05T21:01:25
|
|
Fixed performance regression caused by the fix for bug 2158
|
|
0b7c69fe
|
2013-11-05T20:07:39
|
|
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.
|
|
61068a30
|
2013-11-03T11:34:03
|
|
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. :)
|
|
c4b563e4
|
2013-11-03T11:27:06
|
|
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
|
|
517886a7
|
2013-11-03T11:13:06
|
|
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.
|
|
aaa4165b
|
2013-11-03T11:00:28
|
|
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
|
|
f2224e1f
|
2013-11-03T09:55:27
|
|
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.
|
|
2efd4065
|
2013-11-03T09:42:23
|
|
Clarified that SDL_memset4 is a 32-bit assignment and fixed a compiler warning
|
|
cd37485e
|
2013-11-02T12:07:21
|
|
Changed parameter name for gesture template save functions from "src" to "dst".
|
|
95bbf5f4
|
2013-11-02T11:51:23
|
|
Removed unreachable return statement in gesture source.
|
|
4e270de1
|
2013-11-02T11:46:43
|
|
Changed function to return -1 through SDL_Error() instead of plain -1.
|
|
0f8d9995
|
2013-11-02T11:42:00
|
|
Corrected typo in source comment.
|
|
e651ab12
|
2013-10-31T10:02:21
|
|
Fixes Bug #2191,incorrect test for egl_context validity
Thanks David Binderman!
|
|
804e5799
|
2013-10-30T16:39:35
|
|
Fixed common test usage string (was "hidpi", should be "highdpi").
|
|
d36c7363
|
2013-10-28T22:43:39
|
|
Updated GL version tests for Mac OS X 10.9 ("Mavericks").
They changed the name of their GL 3.2 enum, added the GL 4.1 core profile.
|
|
609b58e4
|
2013-10-24T00:00:10
|
|
Fixed buffer overflow.
|
|
f570effb
|
2013-10-23T20:58:39
|
|
Added tag release-2.0.1 for changeset 5755b4fad250
|
|
7108aac5
|
2013-10-23T20:58:31
|
|
Removed tag release-2.0.1
|
|
aa10a5d9
|
2013-10-23T17:46:07
|
|
Added tag release-2.0.1 for changeset 37391efdb946
|
|
72de99ae
|
2013-10-23T19:52:14
|
|
Initialize MEMORYSTATUSEX size before GlobalMemoryStatusEx() (thanks, Justin!).
Fixes Bugzilla #2177.
|
|
51fc4b20
|
2013-10-23T16:33:15
|
|
Added tag release-2.0.1 for changeset 51a4ba8915d8
|
|
fbfe0901
|
2013-10-23T16:32:56
|
|
Updated Debian package version to 2.0.1
|
|
d3ad8ff4
|
2013-10-23T16:17:08
|
|
Added tag release-2.0.1 for changeset 1e256bd077b2
|
|
e0771482
|
2013-10-23T13:43:17
|
|
Fix regression causing crashes when running without a window manager.
|
|
965a0da9
|
2013-10-23T15:54:12
|
|
Moved a SDL_SetError() call elsewhere to avoid triggering it needlessly.
Otherwise, the XInput path would always trigger it in a harmless manner.
|
|
28aa076c
|
2013-10-23T00:58:20
|
|
SDL_GetPrefPath() now uses the organization on all platforms.
Even if that's not the general convention for a given platform.
|
|
298d3d62
|
2013-10-22T21:54:52
|
|
Fixed duplicate const warning
|
|
30ce2bc7
|
2013-10-22T21:53:58
|
|
SDL 2.0.0 defined __inline__ and some code relies on it now.
|
|
fa73a3c8
|
2013-10-22T21:53:42
|
|
Testing fullscreen window in the accelerometer test.
|
|
09b3b7e7
|
2013-10-21T23:17:37
|
|
Fix error assert for negative cases of pixels_getPixelFormatName test
|
|
6a71d992
|
2013-10-21T22:27:07
|
|
Added patch notes for 2.0.1
|
|
2348e426
|
2013-10-21T22:08:56
|
|
Fixed whitespace
|
|
3d1c3b19
|
2013-10-21T10:28:57
|
|
Revert fix for bug 1392 because it breaks linking with mingw32
|
|
06811ecf
|
2013-10-21T02:46:16
|
|
Fixed bug 2168 - Mac: SDL_filesystem.h not exported to public header folder when building framework
Alex Szpakowski
I actually made a mistake when creating the previous patch file... I forgot to include a crucial line which changed.
I've attached a new patch which just changes the line I forgot, since the other part has already been applied to the repository.
I tested this one by doing a clean rebuild of SDL, and it works with the new patch.
|
|
50da48ee
|
2013-10-21T02:38:23
|
|
We don't have API changes documented yet.
|
|
bcf5472d
|
2013-10-21T02:37:03
|
|
Fixed bug 2073 - Mac: window moves unexpectedly when exiting SDL_WINDOW_FULLSCREEN_DESKTOP mode
Alex Szpakowski
In Mac OS X, when SDL_SetWindowFullscreen(window, 0) is called on a window which was in SDL_WINDOW_FULLSCREEN_DESKTOP mode, its original size is restored but its position is moved to the bottom of the screen.
I tracked down the issue to these two lines: http://hg.libsdl.org/SDL/file/fdd5cc9e9f90/src/video/cocoa/SDL_cocoawindow.m#l1034
I believe [nswindow setFrameOrigin:rect.origin] implicitly calls [nswindow constrainFrameRect:rect toScreen:screen], which will attempt to constrain the window to the screen, but at that point the window size is still full-screen rather than the restored window size, so the constrainFrameRect function operates on the wrong window size.
https://developer.apple.com/library/mac/documentation/cocoa/reference/applicationkit/classes/NSWindow_Class/Reference/Reference.html#//apple_ref/occ/instm/NSWindow/constrainFrameRect:toScreen:
I resolved the issue by swapping the order of the function calls, like so:
[nswindow setContentSize:rect.size];
[nswindow setFrameOrigin:rect.origin];
|
|
d08634e2
|
2013-10-21T02:32:34
|
|
Better fix for bug 2129 - fix for bug 2121 breaks linking for mingw and throws multiple warnings
J?nis R?cis
Reopening as compilation with ANSI C throws lots of unnecessary warnings, both using MinGW and using Linux GCC. (BTW, what happened? MinGW is broken to all hell. sdl2-config does not even link SDLMain anymore?)
I think this may have been lost somewhere, so again: GCC supports inlining via __inline__ in all known versions of GCC, regardless of the C standard in use. Please don't assume that __STRICT_ANSI__ implies no inlining support.
|
|
c10389cf
|
2013-10-21T02:20:39
|
|
Fixed bug 2168 - Mac: SDL_filesystem.h not exported to public header folder when building framework
|
|
b8b9bfbe
|
2013-10-21T01:16:16
|
|
Fixed some warnings building for 64-bit Windows
|
|
11d38d69
|
2013-10-21T00:30:05
|
|
Fixed bug 2015 - surface getting leak in SDLTest_ScreenShot function
Nitz 2013-08-06 03:53:41 UTC
In function SDLTest_ScreenShot() surface pointer getting leak while return
|
|
80930559
|
2013-10-21T00:25:43
|
|
Fixed bug 2012 - Algorithm logic getting wrong in ComputeOutCode
Nitz
I was going through the SDL_IntersectRectAndLine function and wondered to see the ComputeOutCode function implementation.
The problem in this algo is, x and y axis are getting check with respect to 0, Which is wrong, it should be get checked with respect to rectangle x and y axis.
|
|
6f76bc29
|
2013-10-21T00:22:07
|
|
Fixed bug 2061 - SDL_filesystem API not built using cmake
Marcus von Appen
The SDL_filesystem API does not get built properly on Unix and BeOS using cmake due to not including the correct C files.
|
|
deb8086b
|
2013-10-21T00:20:27
|
|
Fixed bug 2072 - Make OS X's filesystem calls use -[NSString fileSystemRepresentation]
C.W. Betts
The recommended way of getting a file name that POSIX file APIs can open in OS X when using an NSString is -[NSString fileSystemRepresentation]. However, the current filesystem API in hg uses -[NSString UTF8String].
|
|
360c3d85
|
2013-10-21T00:15:24
|
|
Better cleanup if OpenGL initialization fails
|
|
5697089d
|
2013-10-20T23:52:02
|
|
Fixed bug 2156 - Android: Accelerometer values fed to joystick driver are inverted for the X axis and wrong for Z
Denis Bernard
Background information: http://developer.android.com/reference/android/hardware/SensorEvent.html#values
Steps to reproduce: compile testjoystick.c as an android app (change screen size according to your device). While running the app, also run:
adb logcat -c; adb logcat -s 'SDL:*' 'SDL/APP:*'
When tilting the device left/right, the joystick moves in the opposite direction of what one would expect. Or at least, the behaviour is not consistent with the Y axis.
Also when the device sits on a table (obviously not moving), the Z axis value oscillates between -32000 and +32000 (by overflow):
I/SDL/APP ( 1994): Joystick 0 axis 2 value: 32511
I/SDL/APP ( 1994): Joystick 0 axis 2 value: 32575
I/SDL/APP ( 1994): Joystick 0 axis 2 value: 32383
I/SDL/APP ( 1994): Joystick 0 axis 2 value: -32386
I/SDL/APP ( 1994): Joystick 0 axis 2 value: -32450
I/SDL/APP ( 1994): Joystick 0 axis 2 value: -32578
This is caused by the accelerometer yielding a constant value around 9.81 for Z and feeding something like 0.9 to 1.1 to the joystick driver, resulting in the overflow.
Proposed fix in SDLActivity.java (swap X and subtract G from Z reading)
|