Sam Lantinga
3755f6920f
Added mapping for Xbox One S controller and PS4 controller on Android 11, including guide button
2020-10-16 12:40:10 -07:00
Sam Lantinga
df52c50434
Backed out changeset 2f59f1264083
2020-10-16 09:45:40 -07:00
Sam Lantinga
645a3280ec
Fix iOS and tvOS builds
...
- Fix iOS and tvOS scheme names
- Add iOS/tvOS Developer signing identities and development team to iOS and
tvOS shared library schemes
2020-10-15 10:13:40 -07:00
Ozkan Sezer
93e1449764
SDL_waylanddatamanager.c (mime_data_list_add): constify the buffer param
...
Fixes -Wdiscarded-qualifiers warnings from Wayland_data_source_add_data()
2020-10-14 15:50:04 +03:00
Sam Lantinga
eb1aba6105
Make the CoreHaptics framework optional on iOS and tvOS
2020-10-13 21:08:22 -07:00
Sam Lantinga
1b31e9f6dc
Added support for game controller rumble on iOS 14
2020-10-13 21:08:13 -07:00
Ozkan Sezer
e58cc5fa0e
minor whitespace fix
2020-10-09 03:28:30 +03:00
Sam Lantinga
79e625f017
Fixed trying to build OSX SDL_OpenURL on iOS and tvOS
2020-10-08 17:01:28 -07:00
Ryan C. Gordon
7bec9df11a
url: Add to Xcode project files, iOS/mac fixes.
2020-10-05 16:10:10 -04:00
Ozkan Sezer
9db16a6557
fix permissions of some project files
2020-06-14 12:21:02 +03:00
Sam Lantinga
22ce194b17
Make sure SDL_locale.h is included in the Xcode Framework for macOS
2020-06-03 14:58:38 -07:00
Sam Lantinga
b9d5aebb3a
Make sure SDL_locale.h is included in the Xcode Framework for tvOS
2020-06-03 14:56:35 -07:00
Sam Lantinga
550b209e90
Make sure SDL_locale.h is included in the Xcode Framework
2020-06-03 14:26:37 -07:00
Ryan C. Gordon
3195551b2e
xcode: make sure locale sources are used in all targets.
2020-05-18 21:07:02 -04:00
Ryan C. Gordon
fa23e3d00b
locale: Implemented SDL_GetPreferredLocales().
...
This was something I proposed a long time ago, Sylvain Becker did
additional work on it, then back to me.
Fixes Bugzilla #2131 .
2020-05-04 02:27:29 -04:00
Sam Lantinga
87917b16a1
Removed CoreBluetooth framework dependency as part of fixing bug 4299
2020-04-14 07:54:38 -07:00
David Ludwig
b2296506bc
virtual joysticks: MSVC support part 1/2, make driver's .c file be uniquely named
2020-03-15 15:05:36 -04:00
David Ludwig
9b1ea290f8
virtual joysticks: added source files to Xcode projects (Bug 5028)
2020-03-15 14:21:05 -04:00
Sam Lantinga
93ed3c8baf
Updated SDL to version 2.0.13 for development builds
2020-03-10 18:25:47 -07:00
Sam Lantinga
983bbf9ef3
Backed out changeset 51622f74dc85
2020-03-10 18:35:31 -07:00
Sam Lantinga
4fb06a2a38
Updated SDL to version 2.0.13 for development builds
2020-03-10 18:25:47 -07:00
Sam Lantinga
11a84e4fa8
Make sure hidapi is built for the release DMG
2020-03-01 18:16:15 -08:00
Sam Lantinga
74ed215618
Updated version to 2.0.12 for release candidate build
2020-03-01 14:58:16 -08:00
Sam Lantinga
1bd120266f
Added SDL_hidapi_rumble.c to the macOS, iOS and tvOS builds
2020-02-04 15:42:49 -08:00
Sam Lantinga
68e702b657
Fixed the hidapi Info.plist for submission to the Apple App Store
2020-02-03 00:51:35 -08:00
Sam Lantinga
39a498c940
Build the hidapi framework and weak link it on Mac OS X
2020-01-31 13:09:20 -08:00
Sam Lantinga
91121ee4bb
Weak link the hidapi framework on iOS and tvOS
2020-01-31 10:45:04 -08:00
Sam Lantinga
1190343f36
Build hidapi as a framework on iOS, so it can be linked by the application as well.
2020-01-30 16:02:56 -08:00
Sam Lantinga
4e33c013d4
More Xcode project improvements
2020-01-30 14:53:18 -08:00
Sam Lantinga
bc68516326
Added a unified Xcode project for macOS, iOS and tvOS
2020-01-29 20:09:18 -08:00
Sam Lantinga
a8780c6a28
Updated copyright date for 2020
2020-01-16 20:49:25 -08:00
Ozkan Sezer
9996d1bb71
fix xcode project file permissions
2019-12-20 14:33:37 +03:00
Sam Lantinga
6b76787209
Make sure the Xbox 360 driver doesn't try to talk to the wireless controllers
2019-12-19 21:45:44 -08:00
Sam Lantinga
20daf54fd8
Added new HIDAPI driver files to the Xcode projects
2019-12-19 15:18:50 -08:00
Ozkan Sezer
b8d325c830
fix xcode project file permissions
2019-11-21 23:04:20 +03:00
Sam Lantinga
2a7b635b9b
Added support for the NVIDIA Controller v01.04 on Android
2019-11-21 11:52:50 -08:00
Ozkan Sezer
eb8f14bb6a
added SDL_strtokr() as a replacement for POSIX strtok_r (bug #4046.)
2019-11-20 20:40:50 +03:00
Ozkan Sezer
ffc7d09197
endpointvolume.h checks not needed since changeset 13078:8ab094a9df6b .
2019-10-01 14:00:02 +03:00
Alex Szpakowski
f46ac1e9f7
macOS: Fix SDL_metal.h not being copied to the framework's Headers folder when SDL.framework is built using Xcode.
2019-09-27 20:15:42 -03:00
Sam Lantinga
84dc44e24d
Fix the RealtimeKit dbus include guards
...
The SDL_USE_LIBDBUS define is set inside SDL_debug.h, therefore the
circular dependency made it impossible for this feature to be enabled.
Instead, guard SDL_dbus.h based on the autoconf variable HAVE_DBUS_DBUS_H
Additionally, fix one of the rtkit comments. CAP_SYS_NICE isn't required
to achieve high priority. But there is some scheduler config that rtkit
needs the app to setup.
2019-09-27 15:21:27 -07:00
Sam Lantinga
3fe2d8368c
Updated SDL development builds to version 2.0.11
2019-09-22 10:37:16 -07:00
Ozkan Sezer
7f5fc74c57
fix permissions
2019-08-08 23:35:02 +03:00
Sam Lantinga
cbdee4d656
[ SDL ] Fix compile error building for Windows/ARM64 on Visual Studio 2017 Win10 SDK 10.0.18362.0 which requires ar,74intr.h/arm64_neon.h header instead of armintr.h/arm_neon.h for intrinsics.
...
@saml
2019-08-08 13:26:05 -07:00
Alex Szpakowski
aebaa316c7
Add public APIs for creating a Metal view attached to an SDL window. Add SDL_metal.h.
2019-08-05 12:35:32 -03:00
Ozkan Sezer
42e4219c1a
fix permissions
2019-08-03 12:50:28 +03:00
Sam Lantinga
63197c4338
Fix bug where the wrong button was the default in the old message box because buttons were added backwards, breaking the indexing used by GetButtonIndex.
...
Add messagebox flags to explicilty request left-to-right button order or right-to-left. If neither is specified it'll be some platform default.
2019-08-02 17:19:50 -07:00
Sam Lantinga
a543361003
Fixed bug 4742 - SDL 2.0.10 DMG has duplicated files (instead of symlinks)
2019-07-30 10:15:49 -07:00
Ozkan Sezer
bcb357d451
fix permissions
2019-06-24 23:50:20 +03:00
Sam Lantinga
be6cda9f95
Rolling back GameCube HIDAPI support
...
It causes the HIDAPI devices to always be opened on enumeration, which causes crashes in the Windows drivers when multiple applications are reading and writing at the same time. We can revisit this after 2.0.10 release.
2019-06-19 15:54:21 -07:00
Sam Lantinga
667c872b42
Fixed building DMG archive on Mac OS X
2019-06-18 21:50:57 -07:00
Sam Lantinga
14e8b93e37
Fixed compiler warning
2019-06-18 14:24:24 -07:00
Sam Lantinga
67c67f3a6b
Updated version to 2.0.10
2019-06-17 10:13:28 -07:00
Ozkan Sezer
09142eb715
fix permissions
2019-06-12 13:56:20 +03:00
Sam Lantinga
de82759c84
Added support for building SDL as a dynamic library on iOS
2019-03-19 07:53:33 -07:00
Sam Lantinga
cf7c05c282
Fixed Mac OS X build
2019-03-16 19:44:04 -07:00
Sam Lantinga
5e13087b0f
Updated copyright for 2019
2019-01-04 22:01:14 -08:00
Ozkan Sezer
43d47f6b24
fix permissions
2018-11-15 07:20:02 +03:00
Sam Lantinga
2e348c1f59
Fixed bug 3193 - Dualshock 3's motion sensors overwrite analog stick
...
maxxus
The Dualshock 3's motion sensors don't seem to be reported by the call to EVIOCGBIT but they still send EV_ABS events. Because they're not reported by EVIOCGBIT they're not assigned a proper axis ids and the default of 0 is used, which is the valid id for the left analog sticks left/right axis.
2018-11-14 13:37:22 -08:00
Ozkan Sezer
f0549cc9c9
fix permissions
2018-10-23 09:10:02 +03:00
Sam Lantinga
c4918db580
Add exception handling to Android hidapi.
2018-10-22 14:55:42 -07:00
Sam Lantinga
568068048f
Fixed bug 4324 - Xcode 10 - more cleanup for macOS and iOS projects
...
Dominik Reichardt
Xcode warns about
"Traditional headermap style is no longer supported; please migrate to using separate headermaps and set 'ALWAYS_SEARCH_USER_PATHS' to NO."
Just doing the latter is enough to silence the warning without ill effects on compiling. This affects the macOS Xcode projects as well as the iOS projects. Definitely not a bug but an annoying warning that could go away.
2018-10-18 15:41:50 -07:00
Ozkan Sezer
35422bd893
fix permissions
2018-09-29 09:20:50 +03:00
Sam Lantinga
74638ea3c5
Ensure we wait on the surface resize before returning from setting fullscreen mode.
2018-09-28 20:39:57 -07:00
Sam Lantinga
9aa8a75d26
Fixed building with Xcode 10.0
2018-09-28 01:18:54 -07:00
Sam Lantinga
bc6c199790
Updated version to 2.0.9
2018-09-26 10:08:14 -07:00
Ozkan Sezer
bab5b08437
fix permissions
2018-09-15 08:11:50 +03:00
Sam Lantinga
e8a0e35e24
Use atomic reference counting for the HID device object
2018-09-14 18:31:01 -07:00
Sam Lantinga
e987bedfe2
Updated Xcode library version to match libtool output with Ozkan's change
2018-09-05 13:04:50 -07:00
Ozkan Sezer
faf8f8b86b
fix permissions
2018-08-30 12:50:10 +03:00
Sam Lantinga
5901fe466b
Added display event files to the Mac OS X project
2018-08-23 02:24:31 -07:00
Sam Lantinga
f1bc1c1274
Fixed crash trying to open HIDAPI controller as a haptics device on Windows
2018-08-22 17:44:28 -07:00
Sam Lantinga
bdbc06b027
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
3e5dbc694a
Added a dummy sensor driver
2018-08-21 13:29:21 -07:00
Sam Lantinga
7c3040e08a
First pass on the new SDL sensor API
2018-08-21 12:11:34 -07:00
Sam Lantinga
d2042e1ed4
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
2018-08-09 16:00:17 -07:00
Ozkan Sezer
cf7b94f292
ran 'chmod -x' on two files
2018-06-30 20:03:23 +03:00
Ozkan Sezer
41da7b79c0
ran 'chmod -x' on many files
2018-06-12 14:00:15 +03:00
Sam Lantinga
c00858bfb1
Fixed bug 4088 - Fix Metal link errors with test programs in SDLTest.xcodeproj
...
Eric Wasylishen
The following patch adds Metal.framework to the "link binary with libraries" section of each test program, with "status" set to "optional", which fixes link errors on all of the test programs. I'm not sure if this is a correct fix - the fact that this was necessary might indicate the static SDL2.a library has a hard dependency on Metal.framework (?) - but it gets the test programs working in Xcode again.
It also adds testyuv_cvt.c to the testoverlay2 target, fixing a link error.
2018-02-20 09:04:31 -08:00
Sam Lantinga
e3cc5b2c6b
Updated copyright for 2018
2018-01-03 10:03:25 -08:00
Ryan C. Gordon
d027f3602f
xcode: Add Metal and QuartCore to everything as a weak_framework.
2017-12-30 14:40:39 -05:00
Sam Lantinga
b2859af6df
Enable building the Metal renderer by default, and weak link the Metal framework so the SDL library is safe to use on older Macs
...
Also generate iOS versions of the Metal shaders
2017-12-07 16:08:09 -08:00
Sam Lantinga
57ebc72714
Fixed bug 3975 - Add GLES2 support for macOS via ANGLE library
...
Andrey
Seems latest google angle library successfully built & tested under macOS'es.
https://github.com/google/angle
We need to use GLES2 to implement true cross-platform code.
2017-12-04 20:35:01 -08:00
Sam Lantinga
a6a4e27ae8
Updated SDL's YUV support, many thanks to Adrien Descamps
...
New functions get and set the YUV colorspace conversion mode:
SDL_SetYUVConversionMode()
SDL_GetYUVConversionMode()
SDL_GetYUVConversionModeForResolution()
SDL_ConvertPixels() converts between all supported RGB and YUV formats, with SSE acceleration for converting from planar YUV formats (YV12, NV12, etc) to common RGB/RGBA formats.
Added a new test program, testyuv, to verify correctness and speed of YUV conversion functionality.
2017-11-12 22:51:12 -08:00
Sam Lantinga
2c5724ef5d
Updated version to 2.0.8 since SDL_image depends on it
2017-11-04 21:58:48 -07:00
Sam Lantinga
0506d4fc42
Build both 32 and 64-bit architectures in the OSX Framework
2017-10-12 17:21:57 -07:00
Sam Lantinga
9c580e14c9
Added functions to query and set the SDL memory allocation functions:
...
SDL_GetMemoryFunctions()
SDL_SetMemoryFunctions()
SDL_GetNumAllocations()
2017-10-12 13:44:28 -07:00
Sam Lantinga
0ce23a5498
Updated version to 2.0.7
2017-10-12 08:08:04 -07:00
Sam Lantinga
cc023b6b81
Fixed bug 3837 - Change project settings for Xcode 9?
...
Mark Callow
Xcode 9 emits a warning to validate project settings. The changes it proposes are
1. [iOS] Update the iOS deployment target to 8.0 since Xcode does
not support anything older.
2. [macOS] Target 'Framework' - Automatically Select Archectures.
3. [iOS & macOS] Turns on a bunch more compile warnings, a *lot* more on iOS.
4. [iOS & macOS] Turn on "Missing Localizability".
I want to confirm if it is ok to accept these changes and submit updated project files.
Since Alex Szpakowski has just removed iOS 7 guard ifdef's, I'm guessing 1 isn't a problem.
2 is probably ok for anyone building themselves. I wonder if it may cause problems for building distribution binaries.
3 shouldn't be a problem either provided any newly emitted warnings are fixed.
4 I am unfamiliar with. The description says "This will turn on the static analyzer to check for "Missing Localizability", because this project is localized for multiple languages." I suppose this may cause new warnings.
2017-09-22 12:26:54 -07:00
Sam Lantinga
d2eda2671d
Added SDL_vulkan.h to the Mac OS X framework headers
2017-09-04 22:51:28 -07:00
Sam Lantinga
737ed973cb
Removed Metal and QuartzCore frameworks which aren't needed for Vulkan support
2017-08-29 01:04:48 -07:00
Ryan C. Gordon
25e3a1ec90
vulkan: Initial Vulkan support!
...
This work was done by Jacob Lifshay and Mark Callow; I'm just merging it
into revision control.
2017-08-27 22:15:57 -04:00
Sam Lantinga
2dc5d32fab
Updated version to 2.0.6
2017-08-18 18:16:37 -07:00
Sam Lantinga
45b774e3f7
Updated copyright for 2017
2017-01-01 18:33:28 -08:00
Ryan C. Gordon
09ed5cc0d8
xcode: Make sure SDL_dataqueue sources are included in all targets.
2016-12-06 13:33:02 -05:00
Ryan C. Gordon
6cb2f5bbbc
xcode: updated macOS and iOS project files with SDL_dataqueue sources.
2016-12-06 12:30:31 -05:00
Sam Lantinga
4759042404
Build SDL as universal binary
2016-10-12 18:46:17 -07:00
Sam Lantinga
e45698d218
Updated version to 2.0.5 in preparation for release
2016-09-28 22:24:01 -07:00
Ryan C. Gordon
8f8f225b3f
Xcode/mac: fix building standalone static and shared libraries.
2016-09-18 18:19:32 -04:00
Sam Lantinga
b7818d7124
Recommended settings from Xcode 7.3.0
2016-09-16 22:28:12 -07:00
Sam Lantinga
e5070d20ee
Fixed set of libraries needed to build on Mac OS X
2016-09-15 08:57:56 -07:00