|
87ef19c4
|
2015-03-25T10:19:10
|
|
Keep track of maximum number of events in-flight in the SDL queue at once.
|
|
3f9f0027
|
2015-03-24T14:40:31
|
|
Patched to compile on C89 compilers.
|
|
672ccb4f
|
2015-03-24T14:36:36
|
|
Make the signal handler hint more generic.
|
|
a91a5604
|
2015-03-24T14:29:25
|
|
Added a hint to prevent SDL from installing signal handlers.
Fixes Bugzilla #2431.
|
|
162ef5ea
|
2015-03-24T13:52:01
|
|
Cleanups in the joystick code.
Removed some redundant state and other confusions.
Fixes Bugzilla #2738.
|
|
4a071b31
|
2015-03-24T03:24:57
|
|
Mac: patched to compile with haptic subsystem disabled (thanks, Rodrigo!).
Fixes Bugzilla #2717.
|
|
9470f4a2
|
2015-03-24T03:21:57
|
|
Better fixes for CMake subsystem enabling (thanks, Sebastian!).
Fixes Bugzilla #2875.
|
|
d9f37853
|
2015-03-24T03:12:35
|
|
Make SDL error string formatting deal with nasty corner cases.
We continued looping while maxlen > 0, but maxlen was unsigned, so an overflow
would make it a large number instead of negative. Fixed.
Some snprintf() implementations might return a negative value if there isn't
enough space, and we now check for that.
Don't overrun the SDL error message buffer, if snprintf() returned the number
of chars it wanted to write instead of the number it did.
snprintf is a portability mess, we should just never use the C runtime for it.
Fixes Bugzilla #2049.
|
|
54f4725a
|
2015-03-24T02:48:16
|
|
Ran hardcoded game controller database through sort_controllers.py.
|
|
a300a735
|
2015-03-24T02:47:25
|
|
Added Logitect RumblePad 2 controller mapping for Linux (thanks, Nicholas!).
Fixes Bugzilla #2091.
|
|
878c2324
|
2015-03-24T02:13:25
|
|
winmm: Let audio callback buffer size be less than 1/4 second (thanks, Jon!).
Maybe this was here for Win9x? There's no reason to insert this much latency
by default.
Fixes Bugzilla #2835.
|
|
ac2bb3f2
|
2015-03-23T20:07:24
|
|
configure script: fix recursive mutex test on Linux systems (thanks, Ozkan!).
|
|
c76130c9
|
2015-03-23T19:54:33
|
|
X11: Reenabled setlocale() and fork() for message boxes.
Fixes Bugzilla #1658.
|
|
331a434f
|
2015-03-23T19:47:08
|
|
Windows: Report window HDC in SDL_SysWMinfo.
Fixes Bugzilla #2668.
|
|
528e48b9
|
2015-03-23T20:24:04
|
|
Android: Removed not needed include statement.
|
|
8a58e12f
|
2015-03-23T20:21:45
|
|
Updated test program for Emscripten.
|
|
b42c2597
|
2015-03-22T01:25:12
|
|
Cocoa: Handle more cases of lost focus when Key window closes (thanks, Alex!).
Sort of fixes Bugzilla #1825 a little more. It's an ongoing effort. :)
|
|
49f33b41
|
2015-03-21T22:42:53
|
|
Added missing SDL_DOLLARRECORD event type documentation in header.
|
|
716ef0d5
|
2015-03-21T08:01:43
|
|
Fixed confusing audio and touch events because of shared enumeration values.
|
|
eb49f8ca
|
2015-03-21T00:09:22
|
|
Patched to compile on OpenGL ES-based platforms.
|
|
161e5d15
|
2015-03-20T23:29:09
|
|
Whoops, lost a newline in here.
|
|
3c76d2ff
|
2015-03-20T21:57:15
|
|
Several corrections to the CMake project files (thanks, Ozkan!).
Fixes Bugzilla #2732.
|
|
34415c45
|
2015-03-20T12:23:53
|
|
Windows: support for OpenGL extension WGL_ARB_context_flush_control.
|
|
70191a93
|
2015-03-20T11:51:03
|
|
CMake: Don't search for the OpenGL library on Mac OS X. It's always there.
|
|
182a7768
|
2015-03-20T11:11:44
|
|
Audio hotplug fixes for winmm and XAudio2 backends.
|
|
c1091f32
|
2015-03-20T10:35:42
|
|
CMake project files no longer force you to link against Wayland or Mir libs.
|
|
d8988ea8
|
2015-03-20T10:02:45
|
|
Fixed some defaults in CMake project file.
Fixes not finding dlopen(), etc.
|
|
6c072917
|
2015-03-19T23:54:35
|
|
Patched to compile on gcc2.
|
|
06e85acd
|
2015-03-19T23:45:34
|
|
Removed unused variable.
|
|
b24ff446
|
2015-03-19T23:44:47
|
|
Make static analysis happy.
|
|
277e07e7
|
2015-03-19T23:39:53
|
|
Fixed a compiler warning on Visual Studio.
|
|
1877f574
|
2015-03-19T23:35:43
|
|
Patched to compile on Windows.
|
|
e9a7a81f
|
2015-03-19T22:20:12
|
|
Immediately minimize the goofy window in testaudiohotplug.
|
|
537b68b9
|
2015-03-19T22:11:20
|
|
Zero out the audio hotplug event structure, so the "padded" fields are sane.
Just in case we ever need those bits in the future.
|
|
cafd030b
|
2015-03-19T22:08:12
|
|
PulseAudio: Hotplug support!
|
|
11cffe1d
|
2015-03-19T15:43:00
|
|
SDL_RemoveAudioDevice() should specify capture vs output.
This lets us reuse values between the two categories without conflicting, etc.
|
|
1e78ef21
|
2015-03-19T13:34:17
|
|
Removed the broken audio streaming code, other small cleanups.
|
|
5cbb32ef
|
2015-03-19T13:27:10
|
|
Disconnected/broken/lost audio devices now continue to fire their callback.
The data produced by the callback is just thrown away and the audio thread
delays as if it's waiting for the hardware to drain.
This lets apps that rely on their audio callback firing regularly continue
to make progress to function as properly as possible in the face of disaster.
Apps that want to know that the device is really gone and deal with that
scenario can use the new hotplug functionality.
|
|
75973f81
|
2015-03-19T13:15:28
|
|
Don't assert if an audio backend reports the same device disconnected twice.
|
|
1110f536
|
2015-03-18T12:03:32
|
|
WinRT: updated names, and references-to, various ANGLE/WinRT repositories
|
|
7c4b88f2
|
2015-03-18T10:29:04
|
|
PulseAudio: Improved multidevice support.
Added capture device enumeration, report human-readable device name, other
cleanups.
|
|
338bf5d2
|
2015-03-18T10:09:39
|
|
Changed some SDL_memset() calls to SDL_zero().
|
|
97ff10c6
|
2015-03-18T10:09:23
|
|
Tweaked a couple comments, added some FIXMEs.
|
|
43674503
|
2015-03-18T10:05:36
|
|
Patched to compile on C89 compilers.
|
|
9a83151e
|
2015-03-18T09:59:22
|
|
PulseAudio: Added multiple device support, other cleanups.
Thanks to Dominik Frizel for most of the effort on this!
Fixes Bugzilla #2730.
|
|
f9cfd9fa
|
2015-03-18T02:01:17
|
|
Bunch of reworking to how we manage audio devices.
Device enumeration now happens at startup and then is managed exclusively
through hotplugging instead of full redetection. The device name list now has
a unique "handle" associated with each item and SDL will pass this to the
backend so they don't have to figure out how a human readable name maps to
real hardware for a second time.
Other cleanups, fixes, improvements, plus all the audio backends updated to
the new interface...largely untested at this point, though.
|
|
73feb8c0
|
2015-03-18T00:56:33
|
|
Fixed a compiler warning.
|
|
522fd829
|
2015-03-17T19:45:47
|
|
WinRT: made OpenGL window-init work with latest round of ANGLE/WinRT updates
Various constants in ANGLE/WinRT, both in MSOpenTech's ms-master branch, and
in Google's branch, were changed again. This change makes SDL/WinRT work with
them.
To note, the ms-master branch (of ANGLE) was updated via this merge:
https://github.com/MSOpenTech/angle/commit/bbd2eb0a9c453a941f2c7abacf616d5a66b6be92#diff-d1377fbe747de154e1bfcf7221d3de67
|
|
b12ea759
|
2015-03-17T10:25:21
|
|
WinRT: another ANGLE/OpenGL-initialization, error messaging tweak
|
|
1083ae22
|
2015-03-17T10:22:36
|
|
WinRT: ANGLE/OpenGLES-initialization, error message improvements
|
|
0e02ce08
|
2015-03-16T02:11:39
|
|
Initial work on audio device hotplug support.
This fills in the core pieces and fully implements it for Mac OS X.
Most other platforms, at the moment, will report a disconnected device if
it fails to write audio, but don't notice if the system's device list changed
at all.
|
|
5b7ddd53
|
2015-03-15T19:25:10
|
|
Updated name of assert type in test program.
|
|
809b7be2
|
2015-03-13T12:20:17
|
|
Cleaning out a silly coding style I used to use.
Changed all the "return (x);" lines to "return x;"
|
|
3a532588
|
2015-03-13T00:48:30
|
|
Removed an unnecessary #ifdef.
|
|
da843f6a
|
2015-03-11T21:14:21
|
|
Updated internal documentation comments.
|
|
060d243f
|
2015-03-06T21:34:10
|
|
Windows: Fixed ignoring return value of internal function.
If the function WIN_ConvertUTF32toUTF8() failed (should currently not be
possible) a not terminated string would have been sent as text input event.
This also fixed converting characters more often than needed on key repetition.
|
|
8f4c2a8f
|
2015-03-06T21:29:25
|
|
Emscripten: Fixed ignoring return value of internal function.
If the function Emscripten_ConvertUTF32toUTF8() failed (should currently not be
possible) a not terminated string would have been sent as text input event.
|
|
1686af72
|
2015-03-06T21:26:37
|
|
Emscripten: Partially fixed not removing key event callbacks if hint was used.
The key event callbacks were always removed from the same target although it is
possible to set them to different targets using the hint. This is only a partial
fix because it assumes that the hint is not changed to a different value later.
|
|
f5d96416
|
2015-03-06T16:03:40
|
|
Allow setting of GL_CONTEXT_RELEASE_BEHAVIOR when creating the GL context when GLX_ARB_context_flush_control is available.
This extension allows the user to specify whether a full flush is performed when making a context not current.
The only way to set this currently is at context creation, so this patch provides that functionality.
Defualt behaviour is set at FLUSH, as per the spec.
This patch does not contain the changes to WGL, appleGL or other platforms as I do not have access to GL 4.5 hardware on those platforms.
Full details on the use of KHR_context_flush_control can be found here:
https://www.opengl.org/registry/specs/KHR/context_flush_control.txt
|
|
483ea8b7
|
2015-03-02T21:36:45
|
|
Fixed SDL_PRI?64 for 64-bit Linux.
64-bit Linux uses a "long" instead of "long long" for 64-bit ints.
Added a special-case this so SDL_PRI?64 doesn't trigger compiler warnings
when used with SDL's 64-bit datatypes on 64-bit Linux.
|
|
d34d608e
|
2015-03-02T11:43:24
|
|
SDL
- fix crash on OSX when removing a device. If the remove happened due to the CFRunLoopRunInMode call in SDL_SYS_JoystickDetect then we would delete the device right away, before SDL_SYS_JoystickUpdate could clean it up. So move the CFRunLoopRunInMode to after the cleanup logic, preventing this case. This does mean that adds and removes of joysticks now take 1 extra frame to show up.
|
|
d6c42966
|
2015-02-22T20:34:08
|
|
Fixed bug 2868 - SDL_FillRect can crash if surface's clip-rect is out-of-bounds
Thanks to John Skaller for the research into this, and for the fix!
|
|
8321efba
|
2015-02-22T23:21:32
|
|
Emscripten: Fixed out of range joystick device index after joystick disconnect.
After disconnecting a joystick the remaining kept their original device index.
This was not correct because the device index must be a number between 0 and
SDL_NumJoysticks(). It was fixed with ideas from SDL's joystick implementation
for Android. Some range checks were removed as the caller already checks them.
|
|
5c43207f
|
2015-02-22T21:00:35
|
|
Emscripten: Fixed sending button and motion events for not opened joysticks.
SDL_SYS_JoystickUpdate() was implemented incorrectly. For every call to it all
attached joysticks were checked. But actually only the given SDL_Joystick should
be checked then. This allowed sending broken events for attached but not opened
joysticks. It also checked the opened joysticks more often than actually needed.
|
|
e4be934f
|
2015-02-21T00:33:25
|
|
Fixed naming conventions in some SDL_assert types, added compat #defines.
Fixes Bugzilla #1997.
|
|
20186815
|
2015-02-19T23:52:10
|
|
Mac OS X: Better way to stop duplicate joystick reports (thanks, Kyungdahm!).
Fixes Bugzilla #2822.
|
|
33b9d9ad
|
2015-02-19T21:51:13
|
|
Windows: Added a FIXME.
|
|
674eb556
|
2015-02-19T21:50:40
|
|
Windows: Free the argv we allocated for console_wmain().
|
|
e974ccf8
|
2015-02-19T21:49:30
|
|
Windows: Added a FIXME.
|
|
f7c4c3d0
|
2015-02-19T21:49:15
|
|
Windows: Make a distinction between ANSI mainline and UTF-8 mainline.
|
|
e93ee5d7
|
2015-02-19T21:44:41
|
|
Windows: Support unicode arguments for console applications (thanks, Jorgen!).
Fixes Bugzilla #2864.
|
|
1b2cb70c
|
2015-02-19T19:55:30
|
|
Mac OS X: replace some deprecated APIs with modern equivalents (thanks, Alex!).
Fixes Bugzilla #2858.
|
|
635a369c
|
2015-02-19T19:40:58
|
|
SDL_SetWindowPosition respects display num for SDL_WINDOWPOS_CENTERED_DISPLAY.
This allows for this kind of code in an application:
int monitorID = 1; // the second monitor!
SDL_SetWindowPosition(sdlWin,
SDL_WINDOWPOS_CENTERED_DISPLAY(monitorID),
SDL_WINDOWPOS_CENTERED_DISPLAY(monitorID));
Fixes Bugzilla #2849.
|
|
b7f6da06
|
2015-02-19T13:42:56
|
|
Some corrections to the SDL2.spec.in (thanks, Simone!).
Fixes Bugzilla #2809.
|
|
a3097559
|
2015-02-19T13:11:19
|
|
Remove unnecessary parentheses and an unnecessary free() of a NULL pointer.
(Thanks, Simon!)
Fixes Bugzilla #2881.
|
|
80ba8547
|
2015-02-18T16:25:15
|
|
Corrected documentation about triggers values in SDL_GameControllerGetAxis().
Fixes Bugzilla #2319.
|
|
8751b956
|
2015-02-18T16:17:53
|
|
We maintain the list of platforms on the wiki now.
Also, I don't really want people emailing community members directly with
problems, so I'm removing their email addresses.
Fixes Bugzilla #2304.
|
|
6dda14c0
|
2015-02-18T21:34:07
|
|
Emscripten: Fixed receiving joystick events after failed init or subsystem quit.
The callbacks used to receive the HTML events were not removed if the joystick
subsystem initialization failed or if the joystick subsystem was quit. Also, the
already connected joysticks were not deleted if the initialization failed later.
|
|
f9adb453
|
2015-02-18T21:31:21
|
|
Removed redundant include statements from test programs.
The needed header files are already included with SDL.h. Still including them in
the test programs is confusing because it somehow suggests they would be needed.
|
|
f75d6c09
|
2015-02-17T23:00:46
|
|
X11: Don't create a window and GL context to look up the glX extension string.
It's not necessary.
|
|
f0c061d1
|
2015-02-17T22:59:56
|
|
glX HasExtension(): check for NULL ext string first.
It's slightly faster than failing later, after a strchr() call, since this
will get called multiple times with a NULL string if the system totally
fails elsewhere.
|
|
052720f7
|
2015-02-15T21:47:10
|
|
Emscripten: Removed unused internal function.
|
|
bd2d0146
|
2015-02-15T21:44:36
|
|
Emscripten: Changed return type of callback implementations from int to EM_BOOL.
The prototypes are declared with EM_BOOL (which is currently an int) in html5.h.
|
|
8a700d4d
|
2015-02-15T12:11:44
|
|
WinRT: a minor, nit-picky cleanup of some OpenGL code
|
|
5ad34f7a
|
2015-02-15T11:53:24
|
|
WinRT: improved OpenGL ES compatibility on WinPhone/ARM and Surface RT
This change integrates initialization settings for ANGLE/WinRT, as suggested in
MSOpenTech's latest ANGLE template-projects (for MSVC).
This should fix some OpenGL initialization issues on WinPhone 8.1 on ARM, and
on the 1st-generation Surface RT.
|
|
ec2df649
|
2015-02-15T11:35:07
|
|
Fixed crash if using clipboard functions without having initialized video.
|
|
cec3efe6
|
2015-02-15T11:33:39
|
|
Fixed compile warning about unused variable in wave test program.
|
|
df329962
|
2015-02-15T00:08:27
|
|
WinRT: fixed crash when using up-to-date versions of ANGLE/WinRT
|
|
2ef8b1a7
|
2015-02-14T15:22:04
|
|
Emscripten: Fixed sending SDL_JOYDEVICEADDED events with an index out of range.
SDL_JOYDEVICEADDED events must contain the device index which is a value between
0 and the number of connected joysticks. The old implementation included a value
based on the instance id instead. It worked in some cases because the values are
similar initially. But after disconnecting joysticks this is no more the case
and the always increasing instance id becomes larger than number of joysticks.
|
|
39418488
|
2015-02-14T15:16:41
|
|
Emscripten: Deactivated and corrected debug log messages on joystick events.
|
|
6abd242b
|
2015-02-14T00:16:27
|
|
Emscripten: Fixed throwing JavaScript exception if no audio context available.
Handling the error in C provides the possibility to just continue without audio.
|
|
c5179c6a
|
2015-02-14T00:13:00
|
|
Emscripten: Fixed not including SDL_internal.h.
|
|
697c5c57
|
2015-02-14T00:10:58
|
|
Emscripten: Fixed framebuffer error message.
|
|
2bb73d17
|
2015-02-14T00:08:48
|
|
Emscripten: Fixed SDL_GetPlatform() returning "Unknown" instead of "Emscripten".
|
|
d1932834
|
2015-02-12T21:40:53
|
|
Fixed test programs for joystick not exiting on events after first disconnect.
Exit was broken since the main loop extraction needed for Emscripten support
because the former local but now global variables were not reset correctly.
|
|
7fd15e7e
|
2015-02-11T01:48:52
|
|
X11: Set dialog hint on message boxes (thanks, Melker!).
This helps the window manager do the right thing with these windows.
|
|
39c41bb9
|
2015-02-10T20:40:03
|
|
Fixed bug 2873 - Joystick test won't reload after reattach
lectem
-plug in the joystick
-start testjoystick 0
-unplug
-replug
The joystick is detected but doesn't enter the loop anymore since done==SDL_TRUE
|
|
bd61c276
|
2015-02-10T20:31:05
|
|
Fixed compiling test with older C.
|
|
e3f9bf33
|
2015-02-08T22:50:16
|
|
Fixed two inconsistencies on failed allocation.
|
|
78f3a80c
|
2015-02-08T15:44:15
|
|
WinRT: made note that VSync is always enabled on WinPhone, due to OS
Windows Phone does not appear to allow VSync to be turned off. Doing so appears
to either result in content not getting drawn (when the D3D debug runtime is
turned off), or forcing VSync back on and logging an error (when the D3D debug
runtime is turned on).
VSync had been getting turned on anyways, this change just notes such:
- via the WinRT README
- by always setting the SDL_RENDERER_PRESENTVSYNC flag when creating an
SDL_Renderer on Windows Phone
|