Commit Graph

  • b431286471 Resolved conflict and added Android_JNI_RequestPermission() Sam Lantinga 2020-02-13 10:19:05 -08:00
  • e261bd4205 Improved fix for bug 4748 - Calling WIN_UpdateClipCursor() / WIN_UpdateClipCursorForWindows() on WIN_PumpEvents() causes beeping and choppy mouse cursor movement, right-click doesn't work Sam Lantinga 2020-02-12 12:26:27 -08:00
  • afb70f2681 test: Reimplemented SDLTest_CommonUsage() to restore binary compatibility. Ryan C. Gordon 2020-02-12 13:09:38 -05:00
  • 0a6d80abf7 mac: Wait a bit before activating app at startup. Ryan C. Gordon 2020-02-12 13:08:29 -05:00
  • 6fe6946a2f Fixed relative mode mouse events stopping if you click on the title bar Sam Lantinga 2020-02-11 21:19:05 -08:00
  • 6ec14b7fda Fixed iOS and Android build Sam Lantinga 2020-02-11 16:23:43 -08:00
  • 4bb95e8403 Implemented OpenSL-ES audio recording on Android Sam Lantinga 2020-02-11 16:14:02 -08:00
  • fe8ce66b53 Attempt to make version detection safe for Mac OS X < 10.10 Sam Lantinga 2020-02-11 10:35:14 -08:00
  • 52b410ab8e Workaround for bug 4822 - Broken visual output in full screen mode with OS X 10.15 Sam Lantinga 2020-02-11 10:21:31 -08:00
  • c31727c7e7 Fixed bug 4748 - Calling WIN_UpdateClipCursor() / WIN_UpdateClipCursorForWindows() on WIN_PumpEvents() causes beeping and choppy mouse cursor movement, right-click doesn't work Sam Lantinga 2020-02-11 10:08:22 -08:00
  • 668276fe81 Don't add a frame to borderless windows. It was done to allow hotkey resizing of borderless windows, but Windows will sometimes draw it, regardless of our WM_* message handling. See bug 4466 for more details. Sam Lantinga 2020-02-11 09:41:55 -08:00
  • f867cebbd4 Fixed bug 4709 - incorrect (not) handling of windows on-screen cursor keys Sam Lantinga 2020-02-11 08:36:13 -08:00
  • 232b7feef6 Make it possible for the application to use different C runtime begin/end thread functions Sam Lantinga 2020-02-11 08:26:46 -08:00
  • 9feabd351c Make sure SDL_CreateThread has the same signature regardless of how the DLL was created. Sam Lantinga 2020-02-11 08:01:44 -08:00
  • 4378fcd9a7 wayland: Fix building with -fno-common (which is now the default in GCC 10). Ryan C. Gordon 2020-02-10 23:48:06 -05:00
  • d55f47d564 Fixed compile warning Sam Lantinga 2020-02-10 13:59:05 -08:00
  • cbc65ce80d src/core/linux/SDL_threadprio.c: fix build without threads Add an include on SDL_error.h to avoid the following build failure without threads: Fabrice Fontaine 2020-02-10 13:56:53 -08:00
  • ed10d9473f opengl: Build out full GL_LINES and respect the diamond-exit rule. Ryan C. Gordon 2020-02-10 12:53:54 -05:00
  • 13155b35b4 The scissor rect needs to be updated when the viewport changes in the Metal renderer Sam Lantinga 2020-02-10 09:42:53 -08:00
  • 3e935aecb9 Fixed bug 4966 - KMSDRM: Add dynamic modeset support Sam Lantinga 2020-02-09 11:44:22 -08:00
  • 64c58b9f19 Fixed NullPointerException Sam Lantinga 2020-02-07 20:20:37 -08:00
  • e5e5416975 Removed VID/PID 0x1532/0x0037, which was listed in the Linux kernel as a Razer Sabertooth, because at least one variant of the Razer DeathAdder mouse shows up with this VID/PID. Specifically the Razer DeathAdder 2013 has this VID/PID Sam Lantinga 2020-02-07 20:19:32 -08:00
  • 833f76ab7b Fixed bug 4968 - NULL passed to memcpy in WriteProprietary in SDL_hidapi_switch.c Sam Lantinga 2020-02-07 11:49:56 -08:00
  • dd0ebfdf8b Use the triggers to test rumble for more fine grained vibration feedback Sam Lantinga 2020-02-07 11:45:32 -08:00
  • 8ba77b35a5 Use the asynchronous HIDAPI rumble code for Nintendo Switch Pro controllers Sam Lantinga 2020-02-07 11:44:57 -08:00
  • 81256207bd Update for bug 4923 - Calling SDL_GameControllerRumble() often takes 8 ms Sam Lantinga 2020-02-07 11:02:34 -08:00
  • d88f3f5226 macOS: fix crash if and when joystick-init-on-add fails David Ludwig 2020-02-05 13:16:17 -05:00
  • a199cb89ad Updated the Android Xbox One Wireless Controller mapping for the latest Xbox controller firmware update Sam Lantinga 2020-02-05 09:29:46 -08:00
  • dc1d3c2974 Catch both PS3 and PS4 motion controls and don't treat them as a game controller Sam Lantinga 2020-02-04 18:36:23 -08:00
  • 1d1a35ef64 Fixed Visual Studio build Sam Lantinga 2020-02-04 16:05:39 -08:00
  • 1bd120266f Added SDL_hidapi_rumble.c to the macOS, iOS and tvOS builds Sam Lantinga 2020-02-04 15:42:49 -08:00
  • 7c7ae00294 Added SDL_hidapi_rumble.c to the Visual Studio project Sam Lantinga 2020-02-04 15:35:01 -08:00
  • 65fd633694 FIX for SDL-4927: CFRetain+CFRelease a game controller's IOKit object David Ludwig 2020-01-30 18:03:34 -05:00
  • 02108cf7e5 Added missing files from previous commit Sam Lantinga 2020-02-04 15:27:25 -08:00
  • 1684606fdf Fixed long delay on main thread caused by blocking rumble writes in HIDAPI drivers There is now a thread that handles all HIDAPI rumble requests and a lock that guarantees that we're not reading and writing the device at the same time. Sam Lantinga 2020-02-04 15:26:56 -08:00
  • 6efebf1768 Moved rumble expiration to the main joystick handling level, and prevent sending the driver layer duplicate rumble requests. Sam Lantinga 2020-02-04 12:48:53 -08:00
  • 976eee77cc Correct joystick hat indexes on linux The index and indices were swapped; Which is fine as long as there are no gaps in the ABS_HAT* event availability but otherwise things do get confused. Sjoerd Simons 2020-02-04 07:23:44 -08:00
  • d19006c5be Fixed bug 4965 - Update the .hgignore file Sam Lantinga 2020-02-03 16:38:07 -08:00
  • ca2186a21b Fixed bug 4758 - hgignore clion build artifacts Sam Lantinga 2020-02-03 16:34:33 -08:00
  • 4b585e75d9 Fixed bug 4833 - Use EGL for X11? Sam Lantinga 2020-02-03 08:06:52 -08:00
  • 67f4478867 Fixed bug 4917 - Wayland: handle discrete pointer axis events Sam Lantinga 2020-02-03 00:57:12 -08:00
  • 68e702b657 Fixed the hidapi Info.plist for submission to the Apple App Store Sam Lantinga 2020-02-03 00:51:35 -08:00
  • b5849daf3e Fixed build warnings on Android Sam Lantinga 2020-02-01 09:23:04 -08:00
  • 212609b3f2 Map the right pad on the Steam Controller to the right stick in the game controller API Sam Lantinga 2020-01-31 14:09:23 -08:00
  • 39a498c940 Build the hidapi framework and weak link it on Mac OS X Sam Lantinga 2020-01-31 13:09:20 -08:00
  • 91121ee4bb Weak link the hidapi framework on iOS and tvOS Sam Lantinga 2020-01-31 10:45:04 -08:00
  • 1190343f36 Build hidapi as a framework on iOS, so it can be linked by the application as well. Sam Lantinga 2020-01-30 16:02:56 -08:00
  • 62a3d6c004 Fixed build Sam Lantinga 2020-01-30 14:58:41 -08:00
  • 4e33c013d4 More Xcode project improvements Sam Lantinga 2020-01-30 14:53:18 -08:00
  • 37278066f2 Export SDL functions for iOS application delegates Sam Lantinga 2020-01-30 14:51:33 -08:00
  • 66579dbd1a test: Common framework now accepts --usable-bounds command line argument. Ryan C. Gordon 2020-01-30 13:47:48 -05:00
  • 80e7e2eb9d test: change path in a comment from '\\' to '/' char. Nothing serious here. Ryan C. Gordon 2020-01-30 13:47:19 -05:00
  • 0641711e9f Added missing file from previous commit Sam Lantinga 2020-01-29 20:09:59 -08:00
  • bc68516326 Added a unified Xcode project for macOS, iOS and tvOS Sam Lantinga 2020-01-29 20:09:18 -08:00
  • 0897f2359c Fixed compiler warning Sam Lantinga 2020-01-29 20:09:16 -08:00
  • 214eb88f0f Added SDL_hidapi_steam.c to the iOS and tvOS dylib build targets Sam Lantinga 2020-01-29 20:09:14 -08:00
  • c7a62b410b There are lots of unused macros in the Steam controller code Sam Lantinga 2020-01-29 20:09:12 -08:00
  • 355f0b54ec Added support for the Steam Controller on mobile devices Sam Lantinga 2020-01-29 20:09:11 -08:00
  • c9c89783cb Miscellaneous pending fixes Sam Lantinga 2020-01-29 20:09:08 -08:00
  • 598cf69475 Fixed member order to make more sense Sam Lantinga 2020-01-28 21:41:13 -08:00
  • 43b377b077 Fixed wired PS4 controller support on Android Sam Lantinga 2020-01-28 17:11:17 -08:00
  • 39563b7bfa x11: Use XSync when changing window position instead of XFlush. Ryan C. Gordon 2020-01-28 13:51:24 -05:00
  • c7e1b289ee cocoa: Fix command line apps' menu bar not working on macOS Catalina. Ryan C. Gordon 2020-01-27 17:15:12 -05:00
  • 059de38c2c darwin: Don't pass NULL device refs to IOHIDDeviceGetValue(). Ryan C. Gordon 2020-01-27 15:44:48 -05:00
  • b4c2e29eed video: Added a hint to override the display's usable bounds. Ryan C. Gordon 2020-01-27 10:58:30 -05:00
  • 7ea3f5b464 Fixed bug 4898 - No rumble because of integer overflow in SDL_JoystickRumble Sam Lantinga 2020-01-26 12:48:35 -08:00
  • 5e649983e7 Don't enumerate devices we can't open Sam Lantinga 2020-01-26 12:40:32 -08:00
  • adb53d0b1f Fixed disabling the Xbox 360 wireless HIDAPI driver Sam Lantinga 2020-01-26 10:32:39 -08:00
  • ce7c51a9cc Always release devices in onPause in case we're going to be force stopped, and for consistency with interacting with other activities that might use the controller Sam Lantinga 2020-01-26 00:37:48 -08:00
  • c9f672fde4 Fixed compiler warnings Sam Lantinga 2020-01-23 22:24:24 -08:00
  • 2ae41b9c61 Fixed mapping for both versions of the Xbox One Elite Series 2 controller firmware connecting over Bluetooth Sam Lantinga 2020-01-23 12:53:43 -08:00
  • 48240ac88e Added mapping for the Xbox One controller connected via the wireless dongle using xow Sam Lantinga 2020-01-23 12:53:41 -08:00
  • 6dc172d093 Turn off rumble on drivers which don't respect the replay.length value Sam Lantinga 2020-01-23 12:53:39 -08:00
  • 30ff5fcfc0 SDL_LEAN_AND_MEAN defaults off Sam Lantinga 2020-01-23 01:03:23 -08:00
  • b5e3d264f2 Added a single SDL_LEAN_AND_MEAN define to turn on minimal SDL builds Protected more code with #ifdefs to reduce the size of minimal shared library builds Sam Lantinga 2020-01-23 01:00:52 -08:00
  • b1c6e7c244 Fixed compile warning Sam Lantinga 2020-01-23 00:32:34 -08:00
  • 443bce741b Added support for the paddles on the Xbox One Elite Series 1 controller Sam Lantinga 2020-01-22 11:28:35 -08:00
  • 6f89b059f7 Documentation of the footprint #defines Sylvain Becker 2020-01-22 15:23:44 +01:00
  • f30ef6ed3d audio: Fixed a '//' style comment. Ryan C. Gordon 2020-01-21 17:40:16 -05:00
  • dbe5c14b33 audio: Calculate a legitimate SDL_AudioSpec::silence in SDL_LoadWAV_RW(). Ryan C. Gordon 2020-01-21 15:49:37 -05:00
  • 55afc281fa Add #define SDL_HAVE_BLIT_N_RGB565 to compile out RGB565 LUT Sylvain Becker 2020-01-21 22:06:09 +01:00
  • 7df22cf2c2 A few #defines to reduce SDL2 footprint. Only applied when library is statically linked Sylvain Becker 2020-01-21 21:33:40 +01:00
  • 25c88ea903 The Xbox One 0x01 initialization packet is an ack packet Sam Lantinga 2020-01-20 13:53:40 -08:00
  • 9c3d1602ab Refactored code so SDL_GetJoystickGameControllerType() is called less during controller detection Sam Lantinga 2020-01-19 11:43:36 -08:00
  • ff06801106 Added missing file from previous commit Sam Lantinga 2020-01-18 11:21:42 -08:00
  • 43aa1fa9e7 Added support for detecting previously unknown Xbox 360 and Xbox One controllers using the HIDAPI driver with libusb and Android Sam Lantinga 2020-01-18 11:21:14 -08:00
  • 27035425e0 There are multiple bindings for XBox One controller model 1708, depending on firmware revision Sam Lantinga 2020-01-17 11:09:57 -08:00
  • bde1a371d1 Added support for the NACON GC-400ES Sam Lantinga 2020-01-17 11:07:19 -08:00
  • 0a7fe18fe6 On Mac OSX there are spurious hat events at program start, so skip these Sam Lantinga 2020-01-17 11:06:02 -08:00
  • 4e682461cc Reattach the kernel driver after closing USB controllers Sam Lantinga 2020-01-17 10:43:14 -08:00
  • 005e2dff21 Android: prevents rare crashes when app goes to background or ends. Sylvain Becker 2020-01-17 12:41:54 +01:00
  • d52ba78b29 Fixed bug 4246 - Android: orientation between portrait<->landscape doesn't work Sylvain Becker 2020-01-17 12:04:18 +01:00
  • a8780c6a28 Updated copyright date for 2020 Sam Lantinga 2020-01-16 20:49:25 -08:00
  • 572f4a8509 Fixed bug 4929 - Software renderer produces bugs when optimizations are turned on with Visual C++ 2019 Sam Lantinga 2020-01-16 15:54:20 -08:00
  • c6817a2c19 Added support for the paddles on the Xbox One Elite Series 2 controller Sam Lantinga 2020-01-16 15:32:41 -08:00
  • 4e1cc124d2 Improved Xbox One controller initialization Sam Lantinga 2020-01-16 15:32:39 -08:00
  • 981e0d367c Fixed bug 4903 - Lack of color multiply with alpha (SDL_BLENDMODE_MOD + SDL_BLENDMODE_BLEND) blending mode for all renderers Sam Lantinga 2020-01-16 08:52:59 -08:00
  • 669729a8a0 Improved Xbox One controller initialization sequence This sequence works across Microsoft, PowerA, PDP, and HORI controllers. The newer Microsoft XBox firmware requires synchronizing the rumble sequence number, when SDL sees it after the initial connect The Razer Wildcat controller requires waiting for init responses before continuing the initialization sequence. The PDP Battlefield 1 controller takes over a second to be ready for initialization, and if initialization is attempted before then, it will fail. Sam Lantinga 2020-01-15 22:18:31 -08:00
  • 3448600526 Added support for the HORI Fighting Commander Sam Lantinga 2020-01-15 22:18:29 -08:00
  • 6705e27c9f Added D-PAD bindings for the Linux Steam Controller Sam Lantinga 2020-01-13 22:05:58 -08:00