Commit Graph

  • ee1911efeb x11: deal with xrandr display size in millimeters being zero. Ryan C. Gordon 2017-01-04 09:33:47 -05:00
  • c9ed79623c Fixed binding the D-pad on some Super NES style controllers Fixed a case where partial trigger pull could be bound to another button Sam Lantinga 2017-01-03 23:39:28 -08:00
  • 55f94fa7ac Fixed bug 3519 - SDL_GetDisplayMode fails to report mode.format when using Wayland backend Sam Lantinga 2017-01-03 00:44:05 -08:00
  • bc633674cb Added SDL_ReserveSpaceInDataQueue() to make space without copying data. Ryan C. Gordon 2016-12-27 23:48:43 -05:00
  • 2bcfbd2521 Fixed bug 3539 - SDL2, missing MIR LDFLAGS Sam Lantinga 2017-01-02 10:30:32 -08:00
  • 3355469802 Fixed bug 3529 - SDL_EGL_UnloadLibrary is not called at all on SDL_Quit Sam Lantinga 2017-01-01 19:10:36 -08:00
  • 3425d72450 improved SDL_GetError() output generated by EGL code David Ludwig 2016-12-29 11:49:18 -05:00
  • 23a749b671 Run sed in binary mode so we don't have to worry about fixing line endings Sam Lantinga 2017-01-01 18:47:29 -08:00
  • 02aa06ab60 Fixed typo in copyright update script Sam Lantinga 2017-01-01 18:36:35 -08:00
  • d77ab77a7a Updated copyright for 2017 Sam Lantinga 2017-01-01 18:33:28 -08:00
  • c5f76b4772 Convert some files back into DOS line endings after updating copyright Sam Lantinga 2017-01-01 18:32:57 -08:00
  • d03df789f4 We don't currently support blitting to < 8 bpp surfaces, return an error instead of corrupting memory in that case. Sam Lantinga 2016-12-31 18:11:19 -08:00
  • 012e17b879 Fixed bug 3535 - Misplaced comment #if/#endif closure comment Sam Lantinga 2016-12-31 16:21:55 -08:00
  • 4b6138f947 Fixed bug 3531 - internal SDL_vsnprintf implementation access memory outside given buffer ranges Sam Lantinga 2016-12-31 16:14:51 -08:00
  • 90b6b805fd Fixed bug 3541 - DisplayIndex out of bounds in SDL_SetWindowPosition Sam Lantinga 2016-12-31 10:30:07 -08:00
  • 0cc40f2af6 Fixed warning and missing animation delay in testoverlay2 program. Philipp Wiesemann 2016-12-30 19:57:50 +01:00
  • eb909cf972 Fixed compiling of testgamecontroller program with C++. Philipp Wiesemann 2016-12-28 20:11:29 +01:00
  • 3d06b2ce33 Fixed warning about unused variable in controllermap program. Philipp Wiesemann 2016-12-28 20:11:12 +01:00
  • ca476cf958 Fixed crash if allocating memory for game controller failed. Philipp Wiesemann 2016-12-28 20:10:48 +01:00
  • 2f75c15ee0 Added documentation for the game controller axis values Sam Lantinga 2016-12-27 09:59:36 -08:00
  • e1d3e01601 Make sure we go all the way back (within the XBox controller dead zone) to prevent accidentally binding axes inverted Sam Lantinga 2016-12-27 09:51:58 -08:00
  • abbbf7e924 Fixed comment style Sam Lantinga 2016-12-27 02:04:38 -08:00
  • bdd7e6b176 Split controller axes into positive and negative sides so each can be bound independently. Using this a D-Pad can be mapped to a thumbstick and vice versa. Also added support for inverted axes, improving trigger binding support Sam Lantinga 2016-12-27 01:39:07 -08:00
  • 6514102d26 x11: Don't loop forever if the X server refuses a pointer grab. Ryan C. Gordon 2016-12-26 23:02:14 -05:00
  • 3c3f3dc3bd Don't use pushd/popd in autogen.sh; Ubuntu's /bin/sh doesn't support it. Ryan C. Gordon 2016-12-26 22:58:58 -05:00
  • 7f0b81eebd Fixed bug 3517 - Compiler warnings with gcc -Wstrict-prototypes Sam Lantinga 2016-12-26 02:12:21 -08:00
  • a838f265ba Fixed bug 3516 - fix build on illumos Sam Lantinga 2016-12-26 01:56:52 -08:00
  • e2c3169a11 Mac: back out commit e5b39f4935c8. It causes significant overhead on many GPUs. Alex Szpakowski 2016-12-23 22:49:37 -04:00
  • 52728f28b8 Mac: Fix over-saturated colors on P3 displays (e.g. the 2016 MBPs). Alex Szpakowski 2016-12-23 22:08:18 -04:00
  • 2e0077f026 Windows: Fixed compile error. Philipp Wiesemann 2016-12-23 20:36:24 +01:00
  • ded7e84edd Corrected header file guard comments. Philipp Wiesemann 2016-12-23 20:36:12 +01:00
  • a252b4d73d Removed debug print statements Sam Lantinga 2016-12-23 02:23:44 -08:00
  • 46dd5015df Fixed compile errors on various platforms Sam Lantinga 2016-12-22 18:43:00 -07:00
  • d016c5e57c Fixed issue where the throttle and other axes on racing wheels don't start at zero and show up as immediate input when the wheel is turned for the first time. Wait until they are actually moved before generating input from them. Sam Lantinga 2016-12-22 17:33:45 -08:00
  • d4bf5754f1 Fixed bus error when converting 16-bit to float for non-integral-multiple sample rates Sam Lantinga 2016-12-19 11:15:53 -08:00
  • b9d8e7cdfd audio: fixed one more incorrectly-hardcoded value in the resamplers. Ryan C. Gordon 2016-12-18 20:17:33 -05:00
  • 7ad6cbc42a tvOS: Expose remote swipe gestures as arrow key presses (thanks oviano!) Alex Szpakowski 2016-12-18 13:05:14 -04:00
  • 2bfa2037ca iOS bug #3377: work around bugs in some third party iOS libraries (e.g. Google admob) where they assume the optional UIApplicationDelegate ‘window’ property always exists and will crash if it doesn’t. Alex Szpakowski 2016-12-18 12:28:28 -04:00
  • 4405458835 audio: fixed arbitrary upsampling (thanks, Sylvain!). Ryan C. Gordon 2016-12-17 16:15:24 -05:00
  • af39fc10d3 Fixed hotplug with more than one device in testjoystick program. Philipp Wiesemann 2016-12-16 22:58:32 +01:00
  • 7d96beee5e Fixed warning about unused variable in controllermap program. Philipp Wiesemann 2016-12-16 22:58:16 +01:00
  • 103da69c77 Fixed handling joysticks that send multiple events for a single control, e.g. both a button and axis event for a trigger. Tested with the 8Bitdo NES30 Pro on Linux Sam Lantinga 2016-12-15 14:27:22 -08:00
  • bfb613a4f0 Fixed crash if there are multiple joysticks closed during the joystick update loop Sam Lantinga 2016-12-14 06:25:09 -08:00
  • 331848b488 windows: add whitespace to fix macro preprocessing issue (thanks, Sven!). Ryan C. Gordon 2016-12-13 00:22:42 -05:00
  • 5d0f852a47 Fixed updated return value for SDL_GL_SwapWindow() Sam Lantinga 2016-12-12 09:19:48 -08:00
  • 42b51c05e9 Fixed edid parsing code for older gcc compilers Sam Lantinga 2016-12-12 09:18:42 -08:00
  • 23ab0d83a2 Fixed ABI, don't change the return type of SDL_GL_SwapWindow() Sam Lantinga 2016-12-11 12:01:44 -08:00
  • bfe435201d Fixed creating a renderer on the dummy driver on Mac OS X Sam Lantinga 2016-12-11 12:01:01 -08:00
  • 9bf991ada9 Fixed crash when creating a dummy window on Mac OS X Sam Lantinga 2016-12-11 11:45:33 -08:00
  • e48feb4c62 WinRT: build fixes David Ludwig 2016-12-10 15:23:17 -05:00
  • 52391e28f8 PP_OK isn't available in the NaCl build environment on buildbot. It's defined as 0 Sam Lantinga 2016-12-09 05:19:31 -08:00
  • 04c2e22b30 Fixed a bunch of SwapWindow calls that needed their return value updated Sam Lantinga 2016-12-09 05:12:27 -08:00
  • 85aea51fe1 Fixed X11 OpenGL ES build Sam Lantinga 2016-12-09 05:04:18 -08:00
  • 0f202d18b3 Fixed build for EGL platforms Sam Lantinga 2016-12-09 05:00:35 -08:00
  • a55ef0239f Added support for the XiaoMi Game Controller Sam Lantinga 2016-12-09 04:57:54 -08:00
  • 800baf2915 Only print out the controller mappings if we're not going to test a controller Sam Lantinga 2016-12-09 04:17:10 -08:00
  • b505909719 Fixed bug 3513 - SDL_GL_SwapWindow does not return error status Sam Lantinga 2016-12-09 01:47:43 -08:00
  • a2c540e172 Fixed bug 3512 - Memory leak of SDL_Joystick axes_zero array Sam Lantinga 2016-12-09 01:29:52 -08:00
  • 4292a15aca Protect the game controller API the same way the joystick API is protected from multi-threaded access Sam Lantinga 2016-12-08 10:13:45 -08:00
  • dac789f605 Added the guide button for the NVIDIA Shield Controller Sam Lantinga 2016-12-07 11:41:20 -08:00
  • 6fd7b13069 Removed unneeded warning when running from Visual Studio Sam Lantinga 2016-12-07 11:02:02 -08:00
  • aeea47b9bd Added support for XBox One controllers on Mac OS X, using the driver at: https://github.com/360Controller/360Controller/releases Sam Lantinga 2016-12-06 14:22:28 -07:00
  • de74e41109 xcode: Make sure SDL_dataqueue sources are included in all targets. Ryan C. Gordon 2016-12-06 13:33:02 -05:00
  • 1ddf1e6935 xcode: updated macOS and iOS project files with SDL_dataqueue sources. Ryan C. Gordon 2016-12-06 12:30:31 -05:00
  • 17856a8b9f audio: Fixed compiler warnings. Ryan C. Gordon 2016-12-06 12:23:17 -05:00
  • 43fa407edf Refactored the audio queueing code to a generic SDL_DataQueue interface. Ryan C. Gordon 2016-12-06 02:23:54 -05:00
  • 1e16752241 Added SDL_VARIABLE_LENGTH_ARRAY so this #ifdef is localized to one place. Ryan C. Gordon 2016-12-06 02:20:58 -05:00
  • 23e29e1256 Fixed bug 3508 - variably modified ‘SDL_dummy_size’ at file scope in test/testatomic.c Sam Lantinga 2016-12-06 00:40:09 -08:00
  • ae4a9149ca Fixed SDL always being built because of missing headers in the project. Sam Lantinga 2016-12-05 21:28:27 -08:00
  • 060892468b Added support for the Hori Fighting Commander 4 Sam Lantinga 2016-12-03 08:39:21 -08:00
  • 2777f7e462 Fixed crash at startup Sam Lantinga 2016-12-03 09:59:43 -08:00
  • 57c990a8c9 Added Linux mapping for the DragonRise Inc. Generic USB Joystick Sam Lantinga 2016-12-03 00:40:13 -08:00
  • 9caf6185ea Fixed compile warning on Visual Studio Sam Lantinga 2016-12-02 22:18:05 -08:00
  • 7bd32ecc46 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. Sam Lantinga 2016-12-02 21:01:13 -08:00
  • f0ca0a5183 Fixed missing prototypes on Android, patch from Sylvain Sam Lantinga 2016-12-02 02:25:12 -08:00
  • d0ad2d6288 Fixed bug 3305 - Fixed TextInput status when the keyboard was dismissed with the dismiss key on the iPad Sam Lantinga 2016-12-02 02:21:35 -08:00
  • 44e8419b93 Added Linux controller mapping for the Nostromo n45 Dual Analog Gamepad Sam Lantinga 2016-12-01 07:31:08 -08:00
  • cd3f06dbbd Fixed bug 3503 - osx builds don't run on 10.6 as of rev. 10651 Sam Lantinga 2016-12-01 11:52:47 -08:00
  • 5a3f134b94 Fixed bug 3340 - SDL_BlitScaled causes access violation in some cases. Sam Lantinga 2016-11-30 22:06:05 -08:00
  • e1b2dba100 Fixed the controller mappings for the OUYA controller Sam Lantinga 2016-11-30 12:58:03 -08:00
  • 827c5b155f 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 Sam Lantinga 2016-11-30 12:34:50 -08:00
  • e7509d309c Added support for the DS4 USB Wireless Adaptor Sam Lantinga 2016-11-30 12:25:19 -08:00
  • 303fb1d18c Updated documentation in header file. Philipp Wiesemann 2016-11-30 23:31:36 +01:00
  • 6a362ee4bb Fixed warning about storing an unused value. Philipp Wiesemann 2016-11-30 23:31:23 +01:00
  • dfcabb1a46 Add the controller mappings to the linked list in order Sam Lantinga 2016-11-29 22:02:37 -08:00
  • f660677b48 Added an API to iterate over game controller mappings Sam Lantinga 2016-11-29 06:36:57 -08:00
  • f7eea9848d 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 Sam Lantinga 2016-11-29 05:34:20 -08:00
  • 6afabd76ed Made it safe to update joysticks from multiple threads, fixes crash in Steam Sam Lantinga 2016-11-29 05:04:42 -08:00
  • 815039f642 Added fcitx-libs-dev to debian build dependencies, for Fcitx IME support Sam Lantinga 2016-11-28 08:05:45 -08:00
  • 150201ffcc Added debian changelog entry for SDL 2.0.5 Sam Lantinga 2016-11-28 07:34:25 -08:00
  • ade9dfdf85 once more - iterating on this is annoying Sam Lantinga 2016-11-26 10:26:36 -08:00
  • 38bace28fb 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. Sam Lantinga 2016-11-26 10:26:32 -08:00
  • d834bb5ef6 tap should default to disabled, not enabled Sam Lantinga 2016-11-26 10:26:26 -08:00
  • 5c3ea9fa3e 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. Sam Lantinga 2016-11-26 10:26:22 -08:00
  • e9290829ce checker-buildbot.sh: Disable warnings that aren't explicitly static analysis. Ryan C. Gordon 2016-11-25 14:16:27 -05:00
  • ef3cd43f79 macOS: removed deprecated UpdateSystemActivity() call. Ryan C. Gordon 2016-11-25 00:13:13 -05:00
  • 6521db4fee Fixed all known static analysis bugs, with checker-279 on macOS. Ryan C. Gordon 2016-11-24 21:41:09 -05:00
  • 24c83a59ae checker-buildbot.sh: Upgraded to checker-279, deal with zero bugs detected. Ryan C. Gordon 2016-11-24 21:13:23 -05:00
  • 77ddff913b Guess the USB VID/PID of XInput devices Sam Lantinga 2016-11-24 12:24:22 -08:00
  • 14e3231663 We are comparing 16-bit values Sam Lantinga 2016-11-24 11:53:23 -08:00