Sam Lantinga
454d9cb96d
PP_OK isn't available in the NaCl build environment on buildbot. It's defined as 0
2016-12-09 05:19:31 -08:00
Sam Lantinga
97d05b0da8
Fixed a bunch of SwapWindow calls that needed their return value updated
2016-12-09 05:12:27 -08:00
Sam Lantinga
7a39681ea5
Fixed X11 OpenGL ES build
2016-12-09 05:04:18 -08:00
Sam Lantinga
fed8cbcdb6
Fixed build for EGL platforms
2016-12-09 05:00:35 -08:00
Sam Lantinga
b936a4c360
Added support for the XiaoMi Game Controller
2016-12-09 04:57:54 -08:00
Sam Lantinga
524bf3c282
Fixed bug 3513 - SDL_GL_SwapWindow does not return error status
...
Return an error code from SDL_GL_SwapWindow(), like the other SDL APIs.
2016-12-09 01:47:43 -08:00
Sam Lantinga
3b18c796ed
Fixed bug 3512 - Memory leak of SDL_Joystick axes_zero array
...
Benjamin Harris
Found with valgrind and confirmed in the 2.0.5 source code.
One-line fix in SDL_JoystickClose?
2016-12-09 01:29:52 -08:00
Sam Lantinga
a525017139
Protect the game controller API the same way the joystick API is protected from multi-threaded access
2016-12-08 10:13:45 -08:00
Sam Lantinga
1b08f0c179
Added the guide button for the NVIDIA Shield Controller
2016-12-07 11:41:20 -08:00
Sam Lantinga
91491824ae
Removed unneeded warning when running from Visual Studio
2016-12-07 11:02:02 -08:00
Sam Lantinga
acabb5d5fd
Added support for XBox One controllers on Mac OS X, using the driver at: https://github.com/360Controller/360Controller/releases
2016-12-06 14:22:28 -07:00
Ryan C. Gordon
c023187548
audio: Fixed compiler warnings.
2016-12-06 12:23:17 -05:00
Ryan C. Gordon
a0e003eebb
Refactored the audio queueing code to a generic SDL_DataQueue interface.
...
This is not a public API (at the moment), but we will be needing this for
other internal things soon.
2016-12-06 02:23:54 -05:00
Ryan C. Gordon
8b960d4e0f
Added SDL_VARIABLE_LENGTH_ARRAY so this #ifdef is localized to one place.
2016-12-06 02:20:58 -05:00
Sam Lantinga
264138cceb
Added support for the Hori Fighting Commander 4
2016-12-03 08:39:21 -08:00
Sam Lantinga
54188c8b9e
Fixed crash at startup
2016-12-03 09:59:43 -08:00
Sam Lantinga
e7efcfbaa4
Added Linux mapping for the DragonRise Inc. Generic USB Joystick
2016-12-03 00:40:13 -08:00
Sam Lantinga
16074e6749
Fixed compile warning on Visual Studio
2016-12-02 22:18:05 -08:00
Sam Lantinga
4eda58ba6a
Added SDL_HINT_MOUSE_NORMAL_SPEED_SCALE and SDL_HINT_MOUSE_RELATIVE_SPEED_SCALE to scale the speed of the mouse.
...
This currently doesn't affect absolute motion, which would need to be implemented on each windowing system so the cursor matches the reported mouse coordinates.
2016-12-02 21:01:13 -08:00
Sam Lantinga
26f05ecb4d
Fixed missing prototypes on Android, patch from Sylvain
2016-12-02 02:25:12 -08:00
Sam Lantinga
84c0780e25
Fixed bug 3305 - Fixed TextInput status when the keyboard was dismissed with the dismiss key on the iPad
...
Diego
I was previously unaware that rotating the device to a different orientation when the keyboard is shown causes a keyboardWillHide followed by a keyboardWillShow notification. The previous patch would then mistakenly StopTextInput when rotating. This patch fixes that by checking if the device is rotating before stopping text input.
2016-12-02 02:21:35 -08:00
Sam Lantinga
a738a6fb49
Added Linux controller mapping for the Nostromo n45 Dual Analog Gamepad
2016-12-01 07:31:08 -08:00
Sam Lantinga
1b689c335c
Fixed bug 3503 - osx builds don't run on 10.6 as of rev. 10651
...
Ozkan Sezer
With rev. 10651, i.e. http://hg.libsdl.org/SDL/rev/747a6a795b21 ,
SDL2 - OS X builds fail to run on 10.6 (my setup: i686 / 10.6.8)
because the symbol _IOPMAssertionCreateWithDescription is missing.
The SDK listing it for 10.7+ does seem correct. Reverting r10651
and rebuilding makes it to function again.
2016-12-01 11:52:47 -08:00
Sam Lantinga
4905cd9c09
Fixed bug 3340 - SDL_BlitScaled causes access violation in some cases.
...
Simon Hug
The SDL_BlitScaled function runs into an access violation for specific blit coordinates and surface sizes. The attached testcase blits a 800x600 surface to a 1280x720 surface at the coordinates -640,-345 scaled to 1280x720. The blit function that moves the data then runs over and reads after the pixel data from the src surface causing an access violation.
I can't say where exactly it goes wrong, but I think it could have something to do with the rounding in SDL_UpperBlitScaled. final_src.y is 288 and final_src.h is 313. Together that's 601, which I believe is one too much, but I just don't know the code enough to make sure that's the problem.
Sylvain
I think this patch fix the issue, but maybe it's worth re-writing "SDL_UpperBlitScaled" using SDL_FRect.
2016-11-30 22:06:05 -08:00
Sam Lantinga
cb8748b719
Fixed the controller mappings for the OUYA controller
2016-11-30 12:58:03 -08:00
Sam Lantinga
5fcf2577fb
Added PS4 controller entries for the new Sony HID driver
...
https://git.kernel.org/cgit/linux/kernel/git/jikos/hid.git/log/?h=for-4.10/sony
2016-11-30 12:34:50 -08:00
Sam Lantinga
663afa911f
Added support for the DS4 USB Wireless Adaptor
2016-11-30 12:25:19 -08:00
Philipp Wiesemann
a7655d77d1
Fixed warning about storing an unused value.
...
Found by buildbot.
2016-11-30 23:31:23 +01:00
Sam Lantinga
d834c08ac7
Add the controller mappings to the linked list in order
2016-11-29 22:02:37 -08:00
Sam Lantinga
dd5d85a4e7
Added an API to iterate over game controller mappings
2016-11-29 06:36:57 -08:00
Sam Lantinga
1e8f074c43
Avoid conflicts with multiple versions of udev by first trying the library that is linked with the executable, if any, and then picking the one that is in the build environment.
...
This fixes joystick detection for applications using the Steam Linux Runtime
2016-11-29 05:34:20 -08:00
Sam Lantinga
5220759f03
Made it safe to update joysticks from multiple threads, fixes crash in Steam
2016-11-29 05:04:42 -08:00
Sam Lantinga
7f764bd8d3
once more - iterating on this is annoying
2016-11-26 10:26:36 -08:00
Sam Lantinga
51ccc9ed8c
if the tap is explicitly disabled by code or by another program, let it remain disabled! this is different than the automatic "event tap was too slow therefore we stopped processing it" timeout which we want to re-enable after.
2016-11-26 10:26:32 -08:00
Sam Lantinga
25f54f0f4f
tap should default to disabled, not enabled
2016-11-26 10:26:26 -08:00
Sam Lantinga
354a8f276e
SDL for Mac - only enable global event tap when actually necessary (app has focus and has requested relative mouse mode or has asked for a mouse grab). in other situations the event tap impacts system performance and battery life with no benefit.
2016-11-26 10:26:22 -08:00
Ryan C. Gordon
d1c35febce
macOS: removed deprecated UpdateSystemActivity() call.
...
The non-deprecated approach (IOPMAssertion) already exists in SDL, and is
available in Mac OS X 10.6 and later (although it was incorrectly listed as
10.7 and later in SDL). Since SDL now requires 10.6 or later, this is no
longer conditionally used.
2016-11-25 00:13:13 -05:00
Ryan C. Gordon
fb5fd67ccb
Fixed all known static analysis bugs, with checker-279 on macOS.
2016-11-24 21:41:09 -05:00
Sam Lantinga
2f6ba615ee
Guess the USB VID/PID of XInput devices
2016-11-24 12:24:22 -08:00
Sam Lantinga
e9983c7b0f
We are comparing 16-bit values
2016-11-24 11:53:23 -08:00
Ryan C. Gordon
e93e91f0b5
Pacify some GCC strict-aliasing compiler warnings.
2016-11-23 21:52:48 -05:00
Sam Lantinga
5232b8e952
Fixed XBox One S controller mapping for firmware revision 3.1.1221.0, including back and guide buttons
2016-11-23 06:54:19 -08:00
Ryan C. Gordon
232ae68864
Still more compiler warning fixes for various platforms.
2016-11-23 17:20:28 -05:00
Ryan C. Gordon
40c2a6fb55
Fixed more compiler warnings.
2016-11-23 11:49:26 -05:00
Ryan C. Gordon
52827361ae
directsound: fixed compiler warnings.
2016-11-23 10:51:44 -05:00
Sam Lantinga
aa03b9d7af
The XBox One S controller sends keys outside the standard joystick button range
2016-11-22 22:14:28 -08:00
Sam Lantinga
6558ecdbf6
Added mapping for XBox One S controller firmware version 3.1.1221.0
2016-11-22 04:42:07 -08:00
Ryan C. Gordon
a949882a98
cpuinfo: fix SDL_HasNEON() on older iOS devices, fixed C++ comment.
2016-11-21 20:35:59 -05:00
Sam Lantinga
3615633571
Renaming of guard header names to quiet -Wreserved-id-macro
...
Patch contributed by Sylvain
2016-11-20 21:34:54 -08:00
Sam Lantinga
abe9271065
Fixed warning building under mingw, patch contributed by Sylvain
2016-11-20 21:29:27 -08:00