Commit Graph

  • c19516b50c cmake: correctly report Vulkan support at configure time (thanks, Tiago!). Ryan C. Gordon 2018-09-18 11:49:42 -04:00
  • c179d3948a Fixed NullPointerException if there's no singleton Sam Lantinga 2018-09-17 12:08:05 -07:00
  • f6a537cbfa Store the API device refcount on the device itself, so if the device is disconnected and we have multiple application references to it, we only free it once. Sam Lantinga 2018-09-17 11:35:24 -07:00
  • 59a2d12cc3 Fixed creating an Android game controller mapping for HIDAPI devices on initialization Sam Lantinga 2018-09-17 11:35:22 -07:00
  • 305e5968aa do not export hidapi symbols from SDL dlls (bug #4259). Ozkan Sezer 2018-09-15 14:28:10 +03:00
  • 5a34f1e3ee acinclude: rename ax_gcc_x86_cpuid.m4.htm to ax_gcc_x86_cpuid.m4 Ozkan Sezer 2018-09-15 09:24:04 +03:00
  • bab5b08437 fix permissions Ozkan Sezer 2018-09-15 08:11:50 +03:00
  • 6b3e893105 Added hints SDL_HINT_MOUSE_DOUBLE_CLICK_TIME and SDL_HINT_MOUSE_DOUBLE_CLICK_RADIUS to allow tuning double-click sensitivity. Also increased the default double-click radius to 32 pixels to be more forgiving for touch interfaces Sam Lantinga 2018-09-14 19:26:26 -07:00
  • 66294d31df Guard against Steam Controller input when we're shutting down. Sam Lantinga 2018-09-14 18:31:03 -07:00
  • e8a0e35e24 Use atomic reference counting for the HID device object Sam Lantinga 2018-09-14 18:31:01 -07:00
  • 6a7b0c27af Fixed crash launching under Steam on Mac OS X Sam Lantinga 2018-09-14 12:41:29 -07:00
  • 0b3a350c90 Fixed Chinese IME support (thanks ???!) Sam Lantinga 2018-09-10 23:01:33 -07:00
  • af823cc1d9 Fixed building on tvOS Sam Lantinga 2018-09-10 23:00:09 -07:00
  • 63848141c1 Fixed building on tvOS without any sensor support Sam Lantinga 2018-09-10 22:59:49 -07:00
  • 33381d3d10 hidapi/SDL_hidapijoystick.c: fix build in C90 mode: Ozkan Sezer 2018-09-07 11:03:24 +03:00
  • afc1738ecb SDL_sensor.h, SDL_video.h: remove comma at end of enumerator lists. Ozkan Sezer 2018-09-07 10:47:50 +03:00
  • 264b81b481 metal: Make sure layer drawableSize is adjusted on resize. Ryan C. Gordon 2018-09-06 00:56:13 -04:00
  • 0cf1ae9d0b Fixed a comment typo. Ryan C. Gordon 2018-09-05 21:24:13 -04:00
  • a0b3dcc26a Fixed bug 4002 - Android, nativeRunMain() fails on some phone with arm64-v8a Sam Lantinga 2018-09-05 15:54:46 -07:00
  • 80021c21b6 Speculatively disable rumble on the Razer Panthera Evo, which doesn't have rumble motors and probably hangs in the same way the Panthera does. Sam Lantinga 2018-09-05 15:28:06 -07:00
  • e987bedfe2 Updated Xcode library version to match libtool output with Ozkan's change Sam Lantinga 2018-09-05 13:04:50 -07:00
  • 96259f1f85 Don't overwrite the default binding when changing the binding for a controller that was using the default. Sam Lantinga 2018-09-05 12:16:01 -07:00
  • 963e74d68c Added binding for Mad Catz FightStick TE S+ (PS3) on Mac OS X Sam Lantinga 2018-09-05 11:24:23 -07:00
  • c152e380be Added support for the Razer Panthera Fightstick Fixed bindings for the Mad Catz FightStick TE S+ Sam Lantinga 2018-09-05 11:18:50 -07:00
  • 9753b9cc46 CMakeLists.txt: fix typo SDL_SENSORS_DISABLED -> SDL_SENSOR_DISABLED Ozkan Sezer 2018-09-02 23:57:06 +03:00
  • aae29c9ebd test: Makefile should copy .dat files for testoverlay2. Ryan C. Gordon 2018-09-02 00:35:11 -04:00
  • 3634e563c4 metal: SDL_UpdateYUVTexture shouldn't swap planes based on format. Ryan C. Gordon 2018-09-01 20:47:12 -04:00
  • 34237b80f4 Better fix to make sure we're only returning controllers from the HIDAPI joystick API Sam Lantinga 2018-08-31 18:10:21 -07:00
  • 4ffcd88ca2 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. Sam Lantinga 2018-08-31 17:47:34 -07:00
  • faf8f8b86b fix permissions Ozkan Sezer 2018-08-30 12:50:10 +03:00
  • 5ef8eb49be Don't show the Razer Raiju sound interface as a game controller Sam Lantinga 2018-08-29 20:55:02 -07:00
  • 90a5607d32 Fixed compiler warning and use higher precision in angle calculation Sam Lantinga 2018-08-29 20:23:42 -07:00
  • 207428b444 Don't rumble Bluetooth PS4 controllers by default, as that switches the controller into extended input report mode, which breaks games that use DirectInput. Sam Lantinga 2018-08-29 20:23:39 -07:00
  • 16ccff3c56 Fixed whitespace Sam Lantinga 2018-08-29 20:23:36 -07:00
  • fda14741ac Fixed Xbox One S Bluetooth support on Mac OS X Sam Lantinga 2018-08-29 18:56:54 -07:00
  • b6aaefc791 SDL_evdev.c: undefine _THIS before redefining it. Ozkan Sezer 2018-08-29 11:04:02 +03:00
  • 92396f7d74 Fixed Windows build Sam Lantinga 2018-08-28 16:19:31 -07:00
  • 404ba5eea8 Fixed bug 4229 - Add support for ABGR format in DirectFB renderer Sam Lantinga 2018-08-28 13:37:11 -07:00
  • 87bc1fb552 GLES2: Get sin/cos out of vertex shader The only place angle is activated and causes effect is RenderCopyEx. All other methods which use vertex shader, leave angle disabled and cause useless sin/cos calculation in shader. Andreas M?ller 2018-08-28 12:57:51 -07:00
  • 044b00dcae Fixed the DirectFB renderer not being enabled in autoconf builds Sam Lantinga 2018-08-27 11:51:05 -07:00
  • a1ca84411e Update the cursor clipping each frame, in case it was stolen by another application. Sam Lantinga 2018-08-26 20:37:23 -07:00
  • 15b3794f11 Only reset the clip rect if it's currently the rect we previously clipped. This prevents us from clearing the clip rect globally when another application has set it. Sam Lantinga 2018-08-26 10:34:23 -07:00
  • 09ab752aa3 Implement SDL_HapticStopEffect on Android (thanks Rachel!) Sam Lantinga 2018-08-24 10:41:57 -07:00
  • a794126d56 vulkan: SDL_Vulkan_GetInstanceExtensions should accept a NULL window. Jeremy Ong 2018-08-24 09:49:48 -04:00
  • a003fa0a05 Implemented SDL_GetDisplayOrientation() on Android (thanks Rachel!) Sam Lantinga 2018-08-23 14:05:25 -07:00
  • df5d565f48 cmake: add sensor subsystem to the build. Ryan C. Gordon 2018-08-23 14:32:30 -04:00
  • 8adadf8f0e Added documentation for additional Android sensors Sam Lantinga 2018-08-23 10:51:54 -07:00
  • de5367a612 Added display event files to the Visual Studio projects Sam Lantinga 2018-08-23 02:48:47 -07:00
  • 5901fe466b Added display event files to the Mac OS X project Sam Lantinga 2018-08-23 02:24:31 -07:00
  • 50d5002533 Fixed build Sam Lantinga 2018-08-23 02:21:17 -07:00
  • 088070e5a8 Moved display orientation handling on iOS out to a separate function for Qt apps Sam Lantinga 2018-08-22 23:47:29 -07:00
  • f225af0c1e Added SDL_GetDisplayOrientation() to get the display orientation, and added a new event SDL_DISPLAYEVENT to notify the application when the orientation changes. Documented the values returned by the accelerometer and gyroscope sensors Sam Lantinga 2018-08-22 21:48:28 -07:00
  • f1bc1c1274 Fixed crash trying to open HIDAPI controller as a haptics device on Windows Sam Lantinga 2018-08-22 17:44:28 -07:00
  • 38ae49880f Updated required Android SDK to API 26, to match Google's new App Store requirements Sam Lantinga 2018-08-21 20:46:25 -07:00
  • 7f4860e2be Doh.. __IPHONEOS__ is defined on tvOS Sam Lantinga 2018-08-21 20:38:22 -07:00
  • 74e99f7416 Don't use CoreMotion on tvOS Sam Lantinga 2018-08-21 20:34:09 -07:00
  • b8ae2c1860 Fixed UWP build Sam Lantinga 2018-08-21 20:20:54 -07:00
  • 6f758ad25f Moved SDL_IsTablet() to a cross-platform API function Sam Lantinga 2018-08-21 20:03:54 -07:00
  • e9f6805fc6 Removed dependency on C++ runtime on iOS Sam Lantinga 2018-08-21 19:42:19 -07:00
  • c6647bf9c9 Added the iOS sensor implementation Sam Lantinga 2018-08-21 17:24:12 -07:00
  • bdbc06b027 Fixed bug 4228 - Clean-up Xcode projects Sam Lantinga 2018-08-21 16:47:44 -07:00
  • c5bcefa7e8 Fixed duplicate definition of SDL_JoystickID Sam Lantinga 2018-08-21 13:44:11 -07:00
  • 7749ee2a43 Added the dummy sensor driver to the Visual Studio projects Sam Lantinga 2018-08-21 13:42:44 -07:00
  • 3e5dbc694a Added a dummy sensor driver Sam Lantinga 2018-08-21 13:29:21 -07:00
  • 7c3040e08a First pass on the new SDL sensor API Sam Lantinga 2018-08-21 12:11:34 -07:00
  • c2791fc60d Don't crash if the app doesn't have Bluetooth permissions Sam Lantinga 2018-08-21 11:59:13 -07:00
  • 2a4999b4bb By default just build for 32-bit ARM and x86 Sam Lantinga 2018-08-21 11:44:08 -07:00
  • 109544ca04 Add SDL_IsTablet() to Android and iOS SDL. Sam Lantinga 2018-08-21 11:23:47 -07:00
  • b09b25f6e4 Don't crash if the app doesn't have Bluetooth permissions Sam Lantinga 2018-08-21 11:07:56 -07:00
  • ad1e3c2a4c Fixed Android build error Sam Lantinga 2018-08-21 10:37:26 -07:00
  • 0d22559e30 Fixed Android build error Sam Lantinga 2018-08-21 10:25:30 -07:00
  • 5dfa4043a3 Fixed warnings building on Mac OS X 64-bit Sam Lantinga 2018-08-20 21:19:17 -07:00
  • 6b3f11e2a3 Fixed code style Sam Lantinga 2018-08-20 21:18:56 -07:00
  • aeea6b9b1f Emscripten: Fixed SDL_SYSTEM_CURSOR_SIZEALL Ryan Speets 2018-08-18 12:30:04 +01:00
  • 90454b1ece SDL_hidapi_ps4.c: define NTDDI_VISTA / _WIN32_WINNT_VISTA if not defined Ozkan Sezer 2018-08-16 11:01:02 +03:00
  • 7d3a7ef827 Use a single hint for both Xbox 360 and Xbox One controllers, since they are often the same driver. Sam Lantinga 2018-08-15 23:35:54 -07:00
  • a2add1f683 Use the HIDAPI driver for Xbox controllers on Windows, and determine the XInput mapping at runtime for extended functionality like rumble and guide button. Sam Lantinga 2018-08-15 23:14:45 -07:00
  • 3f5ff751fe Use a unified name list for Xbox 360 and Xbox One controllers for drivers that can handle both Sam Lantinga 2018-08-15 23:14:43 -07:00
  • aad340eb86 Added Windows Xbox controller state packet handling, for completeness. Sam Lantinga 2018-08-15 19:53:36 -07:00
  • 63107524f6 Fixed input from the Steam Virtual Gamepad on Mac OS X Sam Lantinga 2018-08-15 19:53:34 -07:00
  • 0903e83553 Use SDL specific window class to avoid conflicting with Steam Sam Lantinga 2018-08-15 19:53:31 -07:00
  • c88666580e Catch device removal as well as device arrival on Windows Sam Lantinga 2018-08-15 19:53:30 -07:00
  • 641c674f2a Turned off debug messages Sam Lantinga 2018-08-15 19:53:28 -07:00
  • 51902010c6 Remove the HIDAPI device if we get a read error from it This fixes detecting PS4 controller disconnect on Mac OS X, where there isn't any device removed notification Sam Lantinga 2018-08-15 19:53:26 -07:00
  • dfbd7f65a9 Fixed Mac OS X build Sam Lantinga 2018-08-15 19:53:24 -07:00
  • ec74c318b9 Polling hid_enumerate() every 3 seconds causes freezes and stutters on some USB audio devices and mice. We'll only enumerate devices when we get notification that the system devices have changed Sam Lantinga 2018-08-15 19:53:22 -07:00
  • 2dc04b4c11 libm: one more static analysis fix. Ryan C. Gordon 2018-08-10 15:22:02 -04:00
  • 67a48ad13a haiku: Patched to compile with new joystick interfaces. Ryan C. Gordon 2018-08-10 15:04:08 -04:00
  • e1ac643b32 bsd: Patched to compile. Ryan C. Gordon 2018-08-10 14:54:26 -04:00
  • 67764070f0 bsd: Update joystick code for new interfaces. Ryan C. Gordon 2018-08-10 14:42:40 -04:00
  • b692c35237 emscripten: Patched to compile with new joystick interfaces. Ryan C. Gordon 2018-08-10 14:32:30 -04:00
  • 941f8ecffd joystick: define inline to SDL_INLINE Ryan C. Gordon 2018-08-10 14:10:47 -04:00
  • 0b2863d45e joystick: #if 0'd out some things that aren't currently used. Ryan C. Gordon 2018-08-10 14:09:44 -04:00
  • a7c3d2af81 SDL_hidapi_ps4.c: lowercase windows header names. Ozkan Sezer 2018-08-10 11:50:55 +03:00
  • f159d798dd chmod -x Android.mk Ozkan Sezer 2018-08-10 11:50:01 +03:00
  • 5930b50855 Re-enabled the HIDAPI joystick driver on Windows and Mac OS X Sam Lantinga 2018-08-09 22:53:43 -07:00
  • 4f41f07d43 Added missing files from previous commits Sam Lantinga 2018-08-09 16:05:48 -07:00
  • 31b0224397 Added notes that this code was contributed by Valve Sam Lantinga 2018-08-09 16:04:45 -07:00
  • 99759bac82 There's no controller that's supported by both XInput and HIDAPI Sam Lantinga 2018-08-09 16:04:34 -07:00
  • ab07ce1166 Don't update the device list for devices we know aren't supported This should reduce HID enumeration (hitting the USB bus) if for some reason we're getting spammed with false device insert/removal events Sam Lantinga 2018-08-09 16:04:30 -07:00