Sam Lantinga
563e2c2d71
Update the cursor clipping each frame, in case it was stolen by another application.
2018-08-26 20:37:23 -07:00
Sam Lantinga
3e67665e66
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.
There's also an experimental change to regularly update the clip rect for a window defensively, in case someone else has reset it. It works well, but I don't know if it's cheap enough to call as frequently as it would be called now, and might have other undesirable side effects.
Also fixed whitespace and SDL coding style
2018-08-26 10:34:23 -07:00
Sam Lantinga
8dab95ee3d
Implement SDL_HapticStopEffect on Android (thanks Rachel!)
2018-08-24 10:41:57 -07:00
Jeremy Ong
69441bd02e
vulkan: SDL_Vulkan_GetInstanceExtensions should accept a NULL window.
...
Fixes Bugzilla #4235 .
2018-08-24 09:49:48 -04:00
Sam Lantinga
4ab7b3d88b
Implemented SDL_GetDisplayOrientation() on Android (thanks Rachel!)
2018-08-23 14:05:25 -07:00
Ryan C. Gordon
71439d04cb
cmake: add sensor subsystem to the build.
...
--HG--
extra : amend_source : 1bf21ac4f6adc8b9b631b6e45b46aef7640f3b9c
2018-08-23 14:32:30 -04:00
Sam Lantinga
bd663e048e
Added documentation for additional Android sensors
2018-08-23 10:51:54 -07:00
Sam Lantinga
300c4a6c44
Added display event files to the Visual Studio projects
2018-08-23 02:48:47 -07:00
Sam Lantinga
6410754bce
Added display event files to the Mac OS X project
2018-08-23 02:24:31 -07:00
Sam Lantinga
582b07ab60
Fixed build
2018-08-23 02:21:17 -07:00
Sam Lantinga
e80bcf4a32
Moved display orientation handling on iOS out to a separate function for Qt apps
2018-08-22 23:47:29 -07:00
Sam Lantinga
f69485f745
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
2018-08-22 21:48:28 -07:00
Sam Lantinga
e1853645b8
Fixed crash trying to open HIDAPI controller as a haptics device on Windows
2018-08-22 17:44:28 -07:00
Sam Lantinga
16ffa91778
Updated required Android SDK to API 26, to match Google's new App Store requirements
2018-08-21 20:46:25 -07:00
Sam Lantinga
128af29aa5
Doh.. __IPHONEOS__ is defined on tvOS
2018-08-21 20:38:22 -07:00
Sam Lantinga
40e8a6e146
Don't use CoreMotion on tvOS
2018-08-21 20:34:09 -07:00
Sam Lantinga
429db785ea
Fixed UWP build
2018-08-21 20:20:54 -07:00
Sam Lantinga
34a51417a8
Moved SDL_IsTablet() to a cross-platform API function
2018-08-21 20:03:54 -07:00
Sam Lantinga
b8c45ccb9c
Removed dependency on C++ runtime on iOS
...
--HG--
rename : src/hidapi/ios/hid.mm => src/hidapi/ios/hid.m
2018-08-21 19:42:19 -07:00
Sam Lantinga
da334dae1a
Added the iOS sensor implementation
2018-08-21 17:24:12 -07:00
Sam Lantinga
53f72becea
Fixed bug 4228 - Clean-up Xcode projects
...
C.W. Betts
This cleans up the Xcode project by setting the Xcode groups to the corresponding directories. This also removes the Resources folder in OS X's Products group and adds the CoreBluetooth framework to the iOS tests (this is needed due to the addition of hidapi.
2018-08-21 16:47:44 -07:00
Sam Lantinga
ef50742f11
Fixed duplicate definition of SDL_JoystickID
2018-08-21 13:44:11 -07:00
Sam Lantinga
6e5c7a33a8
Added the dummy sensor driver to the Visual Studio projects
2018-08-21 13:42:44 -07:00
Sam Lantinga
2ca16d7410
Added a dummy sensor driver
2018-08-21 13:29:21 -07:00
Sam Lantinga
09c276f295
First pass on the new SDL sensor API
2018-08-21 12:11:34 -07:00
Sam Lantinga
ea0f29374b
Don't crash if the app doesn't have Bluetooth permissions
2018-08-21 11:59:13 -07:00
Sam Lantinga
50719c8609
By default just build for 32-bit ARM and x86
2018-08-21 11:44:08 -07:00
Sam Lantinga
776fafab15
Add SDL_IsTablet() to Android and iOS SDL.
2018-08-21 11:23:47 -07:00
Sam Lantinga
abfa8df22d
Don't crash if the app doesn't have Bluetooth permissions
2018-08-21 11:07:56 -07:00
Sam Lantinga
8a76b57970
Fixed Android build error
2018-08-21 10:37:26 -07:00
Sam Lantinga
233a8bc619
Fixed Android build error
2018-08-21 10:25:30 -07:00
Sam Lantinga
883aa6e737
Fixed warnings building on Mac OS X 64-bit
2018-08-20 21:19:17 -07:00
Sam Lantinga
4e8e3ba35c
Fixed code style
2018-08-20 21:18:56 -07:00
Ryan Speets
34b4282e0f
Emscripten: Fixed SDL_SYSTEM_CURSOR_SIZEALL
2018-08-18 12:30:04 +01:00
Ozkan Sezer
71027120f3
SDL_hidapi_ps4.c: define NTDDI_VISTA / _WIN32_WINNT_VISTA if not defined
...
it still needs a Vista or newer Platform SDK to build, though.
2018-08-16 11:01:02 +03:00
Sam Lantinga
177487e507
Use a single hint for both Xbox 360 and Xbox One controllers, since they are often the same driver.
2018-08-15 23:35:54 -07:00
Sam Lantinga
6e0f2d6619
Use the HIDAPI driver for Xbox controllers on Windows, and determine the XInput mapping at runtime for extended functionality like rumble and guide button.
2018-08-15 23:14:45 -07:00
Sam Lantinga
8235f84320
Use a unified name list for Xbox 360 and Xbox One controllers for drivers that can handle both
2018-08-15 23:14:43 -07:00
Sam Lantinga
1ac1a37f85
Added Windows Xbox controller state packet handling, for completeness.
2018-08-15 19:53:36 -07:00
Sam Lantinga
4d30496429
Fixed input from the Steam Virtual Gamepad on Mac OS X
2018-08-15 19:53:34 -07:00
Sam Lantinga
ea70c5b7a4
Use SDL specific window class to avoid conflicting with Steam
2018-08-15 19:53:31 -07:00
Sam Lantinga
5cffb66660
Catch device removal as well as device arrival on Windows
2018-08-15 19:53:30 -07:00
Sam Lantinga
242d67f07b
Turned off debug messages
2018-08-15 19:53:28 -07:00
Sam Lantinga
ae47f3aa91
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
2018-08-15 19:53:26 -07:00
Sam Lantinga
a7e38096ba
Fixed Mac OS X build
2018-08-15 19:53:24 -07:00
Sam Lantinga
b29504064b
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
2018-08-15 19:53:22 -07:00
Ryan C. Gordon
5733323e40
libm: one more static analysis fix.
2018-08-10 15:22:02 -04:00
Ryan C. Gordon
20e362b11e
haiku: Patched to compile with new joystick interfaces.
2018-08-10 15:04:08 -04:00
Ryan C. Gordon
9440c9abd6
bsd: Patched to compile.
...
(I think.)
2018-08-10 14:54:26 -04:00
Ryan C. Gordon
cf7dd1d52c
bsd: Update joystick code for new interfaces.
...
(this is an untested push to see if buildbot likes it.)
2018-08-10 14:42:40 -04:00