Commit Graph

  • f4a9580326 Fixed Chinese IME support (thanks 树子。!) Sam Lantinga 2018-09-10 23:01:33 -07:00
  • aa37b0e028 Fixed building on tvOS Sam Lantinga 2018-09-10 23:00:09 -07:00
  • bfe8b97590 Fixed building on tvOS without any sensor support Sam Lantinga 2018-09-10 22:59:49 -07:00
  • ef5920a371 hidapi/SDL_hidapijoystick.c: fix build in C90 mode: Ozkan Sezer 2018-09-07 11:03:24 +03:00
  • 3918965ae9 SDL_sensor.h, SDL_video.h: remove comma at end of enumerator lists. Ozkan Sezer 2018-09-07 10:47:50 +03:00
  • cdac13e19c metal: Make sure layer drawableSize is adjusted on resize. Ryan C. Gordon 2018-09-06 00:56:13 -04:00
  • 3ac049e49c Fixed a comment typo. Ryan C. Gordon 2018-09-05 21:24:13 -04:00
  • 1c88fc1cbf Fixed bug 4002 - Android, nativeRunMain() fails on some phone with arm64-v8a Sam Lantinga 2018-09-05 15:54:46 -07:00
  • 88d7d340f8 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
  • 1da5d57b3d Updated Xcode library version to match libtool output with Ozkan's change Sam Lantinga 2018-09-05 13:04:50 -07:00
  • 47eb5c669e 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
  • 7fe3c4b2ad Added binding for Mad Catz FightStick TE S+ (PS3) on Mac OS X Sam Lantinga 2018-09-05 11:24:23 -07:00
  • 5d8d1ac764 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
  • 1d8d253674 CMakeLists.txt: fix typo SDL_SENSORS_DISABLED -> SDL_SENSOR_DISABLED Ozkan Sezer 2018-09-02 23:57:06 +03:00
  • 846526767d test: Makefile should copy .dat files for testoverlay2. Ryan C. Gordon 2018-09-02 00:35:11 -04:00
  • 3987531781 metal: SDL_UpdateYUVTexture shouldn't swap planes based on format. Ryan C. Gordon 2018-09-01 20:47:12 -04:00
  • a28c07e23d 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
  • 789f59f5df 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
  • 3512d4dbbb fix permissions Ozkan Sezer 2018-08-30 12:50:10 +03:00
  • aaa121432e Don't show the Razer Raiju sound interface as a game controller Sam Lantinga 2018-08-29 20:55:02 -07:00
  • 07f8de33f6 Fixed compiler warning and use higher precision in angle calculation Sam Lantinga 2018-08-29 20:23:42 -07:00
  • f3e84167ad 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
  • 29ce0288aa Fixed whitespace Sam Lantinga 2018-08-29 20:23:36 -07:00
  • 3de426698b Fixed Xbox One S Bluetooth support on Mac OS X Sam Lantinga 2018-08-29 18:56:54 -07:00
  • 0dd9dfe464 SDL_evdev.c: undefine _THIS before redefining it. Ozkan Sezer 2018-08-29 11:04:02 +03:00
  • 61f11dafb5 Fixed Windows build Sam Lantinga 2018-08-28 16:19:31 -07:00
  • eddc4411e4 Fixed bug 4229 - Add support for ABGR format in DirectFB renderer Sam Lantinga 2018-08-28 13:37:11 -07:00
  • eb2445d1ea 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
  • a8221be02b Fixed the DirectFB renderer not being enabled in autoconf builds Sam Lantinga 2018-08-27 11:51:05 -07:00
  • e40839a791 Update the cursor clipping each frame, in case it was stolen by another application. Sam Lantinga 2018-08-26 20:37:23 -07:00
  • 178027302b 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
  • 7ac9576351 Implement SDL_HapticStopEffect on Android (thanks Rachel!) Sam Lantinga 2018-08-24 10:41:57 -07:00
  • 1bb7162872 vulkan: SDL_Vulkan_GetInstanceExtensions should accept a NULL window. Jeremy Ong 2018-08-24 09:49:48 -04:00
  • 3020a91dba Implemented SDL_GetDisplayOrientation() on Android (thanks Rachel!) Sam Lantinga 2018-08-23 14:05:25 -07:00
  • dd62d1f745 cmake: add sensor subsystem to the build. Ryan C. Gordon 2018-08-23 14:32:30 -04:00
  • c6e6ed6258 Added documentation for additional Android sensors Sam Lantinga 2018-08-23 10:51:54 -07:00
  • 88063d4086 Added display event files to the Visual Studio projects Sam Lantinga 2018-08-23 02:48:47 -07:00
  • 9a8ab9d42a Added display event files to the Mac OS X project Sam Lantinga 2018-08-23 02:24:31 -07:00
  • 3191d386c4 Fixed build Sam Lantinga 2018-08-23 02:21:17 -07:00
  • de6d77b437 Moved display orientation handling on iOS out to a separate function for Qt apps Sam Lantinga 2018-08-22 23:47:29 -07:00
  • 2d69f1cbf5 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
  • c37eebf0e9 Fixed crash trying to open HIDAPI controller as a haptics device on Windows Sam Lantinga 2018-08-22 17:44:28 -07:00
  • a62c94266b 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
  • 06479674fc Doh.. __IPHONEOS__ is defined on tvOS Sam Lantinga 2018-08-21 20:38:22 -07:00
  • 5a53712fcc Don't use CoreMotion on tvOS Sam Lantinga 2018-08-21 20:34:09 -07:00
  • 4fa32ed5e9 Fixed UWP build Sam Lantinga 2018-08-21 20:20:54 -07:00
  • 9505b76b0d Moved SDL_IsTablet() to a cross-platform API function Sam Lantinga 2018-08-21 20:03:54 -07:00
  • 605c269317 Removed dependency on C++ runtime on iOS Sam Lantinga 2018-08-21 19:42:19 -07:00
  • a9118643f8 Added the iOS sensor implementation Sam Lantinga 2018-08-21 17:24:12 -07:00
  • 00036831e8 Fixed bug 4228 - Clean-up Xcode projects Sam Lantinga 2018-08-21 16:47:44 -07:00
  • 30f36e443a Fixed duplicate definition of SDL_JoystickID Sam Lantinga 2018-08-21 13:44:11 -07:00
  • 197c3e4780 Added the dummy sensor driver to the Visual Studio projects Sam Lantinga 2018-08-21 13:42:44 -07:00
  • 47d7fd9663 Added a dummy sensor driver Sam Lantinga 2018-08-21 13:29:21 -07:00
  • 6a6db94f54 First pass on the new SDL sensor API Sam Lantinga 2018-08-21 12:11:34 -07:00
  • abed52cd4a Don't crash if the app doesn't have Bluetooth permissions Sam Lantinga 2018-08-21 11:59:13 -07:00
  • d6bc1fb3c8 By default just build for 32-bit ARM and x86 Sam Lantinga 2018-08-21 11:44:08 -07:00
  • ce26218414 Add SDL_IsTablet() to Android and iOS SDL. Sam Lantinga 2018-08-21 11:23:47 -07:00
  • 09b42932bc Don't crash if the app doesn't have Bluetooth permissions Sam Lantinga 2018-08-21 11:07:56 -07:00
  • f76036a5b8 Fixed Android build error Sam Lantinga 2018-08-21 10:37:26 -07:00
  • 433e09833f Fixed Android build error Sam Lantinga 2018-08-21 10:25:30 -07:00
  • 30509f97ac Fixed warnings building on Mac OS X 64-bit Sam Lantinga 2018-08-20 21:19:17 -07:00
  • 9673f8bea2 Fixed code style Sam Lantinga 2018-08-20 21:18:56 -07:00
  • 28487d49c2 Emscripten: Fixed SDL_SYSTEM_CURSOR_SIZEALL Ryan Speets 2018-08-18 12:30:04 +01:00
  • f3984d8f40 SDL_hidapi_ps4.c: define NTDDI_VISTA / _WIN32_WINNT_VISTA if not defined Ozkan Sezer 2018-08-16 11:01:02 +03:00
  • 78df4310c2 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
  • bd3cb01bc5 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
  • 650065c296 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
  • 817489abbf Added Windows Xbox controller state packet handling, for completeness. Sam Lantinga 2018-08-15 19:53:36 -07:00
  • e36af84e04 Fixed input from the Steam Virtual Gamepad on Mac OS X Sam Lantinga 2018-08-15 19:53:34 -07:00
  • fc31c30fc7 Use SDL specific window class to avoid conflicting with Steam Sam Lantinga 2018-08-15 19:53:31 -07:00
  • cbf66c4939 Catch device removal as well as device arrival on Windows Sam Lantinga 2018-08-15 19:53:30 -07:00
  • 87dc0a72ab Turned off debug messages Sam Lantinga 2018-08-15 19:53:28 -07:00
  • 142d9c78c3 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
  • e356abff7b Fixed Mac OS X build Sam Lantinga 2018-08-15 19:53:24 -07:00
  • 4e722009a6 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
  • 5392bd02ae libm: one more static analysis fix. Ryan C. Gordon 2018-08-10 15:22:02 -04:00
  • f0759d0233 haiku: Patched to compile with new joystick interfaces. Ryan C. Gordon 2018-08-10 15:04:08 -04:00
  • ec9e4e7df7 bsd: Patched to compile. Ryan C. Gordon 2018-08-10 14:54:26 -04:00
  • 4866063a65 bsd: Update joystick code for new interfaces. Ryan C. Gordon 2018-08-10 14:42:40 -04:00
  • de4e0e2f84 emscripten: Patched to compile with new joystick interfaces. Ryan C. Gordon 2018-08-10 14:32:30 -04:00
  • e391a269c1 joystick: define inline to SDL_INLINE Ryan C. Gordon 2018-08-10 14:10:47 -04:00
  • cb41f10d60 joystick: #if 0'd out some things that aren't currently used. Ryan C. Gordon 2018-08-10 14:09:44 -04:00
  • 5c483cdfd5 SDL_hidapi_ps4.c: lowercase windows header names. Ozkan Sezer 2018-08-10 11:50:55 +03:00
  • cddde8ff05 chmod -x Android.mk Ozkan Sezer 2018-08-10 11:50:01 +03:00
  • 1083673899 Re-enabled the HIDAPI joystick driver on Windows and Mac OS X Sam Lantinga 2018-08-09 22:53:43 -07:00
  • f06a191048 Added missing files from previous commits Sam Lantinga 2018-08-09 16:05:48 -07:00
  • 3ee8baee46 Added notes that this code was contributed by Valve Sam Lantinga 2018-08-09 16:04:45 -07:00
  • 1d18743335 There's no controller that's supported by both XInput and HIDAPI Sam Lantinga 2018-08-09 16:04:34 -07:00
  • efdea54cd7 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
  • 02498210e3 The MINIX NEO-U1 is now being reported as Android TV Sam Lantinga 2018-08-09 16:04:25 -07:00
  • 08513a7686 Sam Lantinga <slouken@libsdl.org> 2018-08-06 13:00 -0700 Backed out changeset 448e9f627e71 http://hg.libsdl.org/SDL/rev/e1f4191461a0 Sam Lantinga 2018-08-09 16:04:21 -07:00
  • d57310bf62 Sam Lantinga <slouken@libsdl.org> 2018-08-06 11:58 -0700 Removed mapping for VID/PID 0x0079/0x0006, which is a generic PCB used in many different devices http://hg.libsdl.org/SDL/rev/448e9f627e71 Sam Lantinga 2018-08-09 16:04:18 -07:00
  • d2fff7b1d3 SDL: disable HIDAPI in SDL on Windows/Mac. Sam Lantinga 2018-08-09 16:03:55 -07:00
  • f5908635ae Worked around bug with Sony PS Now PS3 controller where DirectInput polling will continue to return success after the controller is unplugged. The code is now reliant on SDL_PrivateJoystickAdded() and SDL_PrivateJoystickRemoved() being called correctly when devices are added or removed on Windows Sam Lantinga 2018-08-09 16:03:50 -07:00
  • 59594ecdba Fixed Windows build Sam Lantinga 2018-08-09 16:03:29 -07:00
  • a7f26f9e6c Added HIDAPI joystick drivers for more consistent support for Xbox, PS4 and Nintendo Switch Pro controller support across platforms. Added SDL_GameControllerRumble() and SDL_JoystickRumble() for simple force feedback outside of the SDL haptics API Sam Lantinga 2018-08-09 16:00:17 -07:00
  • 8d4bb4e555 libm: Don't let Visual Studio generate an implicit memset() call. Ryan C. Gordon 2018-08-08 15:39:20 -04:00
  • cea9c89bcc backout INFINITY change...of course Visual Studio doesn't have it. Ryan C. Gordon 2018-08-08 12:36:54 -04:00
  • e78aec013e e_exp: One more compiler warning. Ryan C. Gordon 2018-08-08 12:19:01 -04:00
  • 9e71f22e62 libm: Fixed all static analysis warnings. Ryan C. Gordon 2018-08-08 12:13:56 -04:00