Alex Szpakowski
fd85f5748d
Mac: back out commit 3e9b2ae41adf. It causes significant overhead on many GPUs.
2016-12-23 22:49:37 -04:00
Alex Szpakowski
d719374cb9
Mac: Fix over-saturated colors on P3 displays (e.g. the 2016 MBPs).
2016-12-23 22:08:18 -04:00
Alex Szpakowski
eda74fda96
tvOS: Expose remote swipe gestures as arrow key presses (thanks oviano!)
2016-12-18 13:05:14 -04:00
Alex Szpakowski
787a54c84b
iOS bug #3377 : work around bugs in some third party iOS libraries (e.g. Google admob) where they assume the optional UIApplicationDelegate ?window? property always exists and will crash if it doesn?t.
2016-12-18 12:28:28 -04:00
Alex Szpakowski
8500de8fa5
Fix tabs -> spaces
2016-10-01 19:16:46 -03:00
Alex Szpakowski
f0539aa25e
Fix bug 3436 - SDL_RaiseWindow not working on windows
2016-10-01 19:12:58 -03:00
Alex Szpakowski
571f4ce8a6
Fix CMake setting an incorrect video backend on iOS
2016-10-01 17:05:29 -03:00
Alex Szpakowski
f31c7086d8
Enable SDL_LoadObject on iOS 8+ and tvOS.
2016-09-25 15:02:06 -03:00
Alex Szpakowski
77bacfd72d
tvOS launch images are now properly supported.
2016-09-25 11:46:25 -03:00
Alex Szpakowski
a8b033d7c4
Update the code for the iOS demos to handle modern devices. Fixes bug #3337
2016-09-25 00:23:35 -03:00
Alex Szpakowski
40ecac8e60
Don't try to load a launch storyboard on tvOS (it doesn't use them).
2016-09-25 00:21:12 -03:00
Alex Szpakowski
666d3fecc8
iOS/tvOS: Try to load the launch screen as a storyboard. Xcode 8 compiles it as a storyboard instead of a nib.
2016-09-24 23:33:49 -03:00
Alex Szpakowski
9165ba7ebd
iOS/tvOS: Always send SDL_WINDOWEVENT_FOCUS_GAINED when a window is created on the main screen (fixes bug #3395 ).
2016-09-24 20:12:57 -03:00
Alex Szpakowski
450fa8cdf9
Use OS-provided click counts on macOS and iOS for mouse press and release events.
2016-09-24 18:46:34 -03:00
Alex Szpakowski
bac5394127
Fix mouse wheel events on macOS 10.12 (thanks Eric Wasylishen!)
...
Fixes bug #3432
2016-09-24 13:28:40 -03:00
Alex Szpakowski
f0fca2880f
Handle audio interruptions on iOS/tvOS. Fixes bugs 2569 and 2960.
2016-09-18 19:22:09 -03:00
Alex Szpakowski
459102a5c0
Updated URL in a comment
2016-09-17 01:36:29 -03:00
Alex Szpakowski
a96b6f2104
Added a new hint SDL_HINT_APPLE_TV_REMOTE_ALLOW_ROTATION.
...
When set to "1", the orientation of the Apple TV remote affects the axes of the corresponding SDL joystick. It is "0" (disabled) by default.
2016-09-17 01:31:07 -03:00
Alex Szpakowski
4bcce330d1
tvOS: Add drop-file support
2016-09-15 21:49:29 -03:00
Alex Szpakowski
4209a1fd4c
CoreAudio iOS/tvOS: Use AVFoundation instead of AudioSession. Fixes audio on tvOS.
...
Note that linking with AVFoundation is now required if you don't disable SDL_audio compilation on iOS and tvOS.
2016-09-15 19:59:57 -03:00
Alex Szpakowski
f050576665
Initial Apple TV / tvOS support.
...
The Apple TV remote is currently exposed as a joystick with its touch surface treated as two axes. Key presses are also generated when its buttons and touch surface are used.
A new hint has been added to help deal with deciding whether to background the app when the remote's menu button is pressed: SDL_HINT_APPLE_TV_CONTROLLER_UI_EVENTS.
2016-09-13 22:18:06 -03:00
Alex Szpakowski
86708c3cd8
Enable more compiler warnings in the Xcode projects (based on Xcode 8's suggestion), made some integer downcasts explicit.
2016-09-13 19:51:10 -03:00
Alex Szpakowski
d0bd0e4855
iOS: Fix an OpenGL ES error when rotating the device if MSAA is used (thanks Cole Campbell!)
...
Fixes bug #3378 .
2016-07-02 13:38:31 -03:00
Alex Szpakowski
ea2f5e5930
Windows: Fix other window positions/sizes being changed when exiting exclusive fullscreen (bug #3315 , thanks Simon Hug!)
2016-05-23 15:29:25 -03:00
Alex Szpakowski
0a4085a048
Mac: Fix a crash when SDL is compiled with SDL_MAC_NO_SANDBOX enabled, by increasing the stack size of the mouse tap thread back to OS X' default of 512 KB.
2016-05-21 12:09:23 -03:00
Alex Szpakowski
4a468739f8
Removed Mac OS 10.5 support (bug #3137 ). Also fixed a warning about deprecated Carbon code when using SDL_audio (bug #3127 , thanks Dominik!)
2016-05-21 00:20:52 -03:00
Alex Szpakowski
b15efce277
Cocoa mouse code: Replaced NSPointInRect with NSMouseInRect (thanks Eric Wasylishen!) Fixes bug #3312 .
2016-05-01 21:41:30 -03:00
Alex Szpakowski
d383502657
Mac: replaced a deprecated CGSetLocalEventsSuppressionInterval call that I missed in commit 2f72bdfee9bb
2016-05-01 19:51:10 -03:00
Alex Szpakowski
34f095e098
iOS: Fixed SDL_GL_CreateContext crashing instead of returning null when a GLES3 context is requested on iOS 6 and older.
2016-04-10 22:07:10 -03:00
Alex Szpakowski
6cfa71a10e
iOS: Also do the Dictation crash workaround before executing the animation callback.
2016-04-02 13:21:01 -03:00
Alex Szpakowski
88372277b7
Add a new hint SDL_HINT_MAC_MOUSE_FOCUS_CLICKTHROUGH, which allows mouse click events to occur when clicking to focus a window in Mac OS X.
...
Fixes bug #3300 .
2016-04-02 11:54:05 -03:00
Alex Szpakowski
5520ed9cc2
iOS: Workaround for a crash after Dictation is used.
2016-04-01 19:18:50 -03:00
Alex Szpakowski
08488e6d34
Mac: avoid calling CGSetLocalEventsSuppressionInterval, it was deprecated in OS X 10.6.
2016-03-20 15:35:34 -03:00
Alex Szpakowski
2c3bf6658a
Windows CMake: don't try to link dxguid, it's unavailable when using Visual Studio's XP-compatible toolset.
2016-03-18 22:15:53 -03:00
Alex Szpakowski
33af421d7b
Windows: make sure SDL_TicksInit has been called before calling Sleep(ms) in SDL_Delay. This ensures the Windows system timer resolution is properly set before Sleep is called.
2016-02-14 21:17:25 -04:00
Alex Szpakowski
8e7cd6b5da
iOS: Implemented clipboard support.
2016-02-03 20:32:55 -04:00
Alex Szpakowski
325921789a
x11: Fix AltGr generating an invalid keycode (bug #3244 ). Thanks Thomas!
2016-01-31 09:39:42 -04:00
Alex Szpakowski
87ea39be84
Removed dead code (caught by Clang's static analyzer).
2016-01-09 17:41:09 -04:00
Alex Szpakowski
4aae0290ea
Updated some header comments and iOS documentation to better clarify high-dpi / retina support and screen-coordinate sizes versus pixel sizes.
2015-12-31 21:16:43 -04:00
Alex Szpakowski
b0d8dfcd8a
CMake: Fixed building for Windows with VS2015 (bug #3080 ).
...
- Don't try to link with the Visual C runtime.
- Avoid code generation that would use functions from the VC runtime.
2015-12-31 15:26:40 -04:00
Alex Szpakowski
4ae69e3222
Mac: expose joystick buttons that report themselves as having 'Start' and 'Select' HID usages.
...
I don't know if any joysticks report those usages for any buttons in practice, but other prominent Mac gaming software exposes them, so we might as well too.
2015-12-28 15:44:09 -04:00
Alex Szpakowski
4026980917
Cleaned up some code formatting.
2015-12-18 00:49:27 -04:00
Alex Szpakowski
cb15bb4cfa
iOS: Set the player index of MFi gamepads when the user first presses a button, rather than when it's programatically opened.
2015-12-11 16:41:59 -04:00
Alex Szpakowski
a2235d7b29
Cocoa: Use NSTextInputClient instead of NSTextInput for text input handling. The latter was deprecated in OS X 10.6.
2015-12-10 22:17:22 -04:00
Alex Szpakowski
0c463d770b
SDL_GL_GetAttribute: If a GL context isn't active, only return failure when the specified attribute needs an active GL context to be queried.
2015-12-10 20:25:34 -04:00
Alex Szpakowski
6a50d33385
Removed some debug prints.
2015-11-30 03:30:35 -04:00
Alex Szpakowski
9ddc6c3441
Mac: Fixed SDL_SetWindowFullscreen not restoring the window's original size when exiting a Space.
2015-11-30 03:30:07 -04:00
Alex Szpakowski
998a54f9c5
Mac: Fix a warning about implicit declaration of SDL_SendKeymapChangedEvent (bug #3167.)
2015-11-14 04:24:39 -04:00
Alex Szpakowski
2816d4477d
Mac: Added SDL_GameController mappings for the Steelseries Stratus XL and Nimbus gamepads.
2015-11-12 22:53:37 -04:00
Alex Szpakowski
9c51c4a639
Mac: Detect the d-pad and pause buttons on Steelseries MFi gamepads (bug #3124.)
2015-11-12 22:44:32 -04:00
Alex Szpakowski
7267835842
iOS: Fixed crashes when rotating the screen after destroying a window.
2015-11-12 20:58:11 -04:00
Alex Szpakowski
0da59802aa
iOS: Set the 'player index' of MFi game controllers when they're opened for use.
...
MFi controllers display their player index via LEDs on the controller.
2015-11-09 18:13:47 -04:00
Alex Szpakowski
84f6bc41b8
iOS: Fixed MFi game controller triggers to report the proper range of values.
2015-11-09 17:41:54 -04:00
Alex Szpakowski
7ce64372c8
iOS MFi game controllers: inverted the thumbstick y axis values to match the behavior of other controllers.
2015-11-09 02:32:37 -04:00
Alex Szpakowski
f8824cb99b
Mac: Fix returning to the window's Space in OS X 10.11+ when SDL_WINDOW_FULLSCREEN_DESKTOP is used (bug #3152.)
2015-10-23 03:37:53 -03:00
Alex Szpakowski
ab2a350033
iOS: show message boxes using the new UIAlertController APIs when supported, rather than the deprecated UIAlertView.
...
UIAlertController is also supported on tvOS, whereas UIAlertView is not.
2015-09-25 15:17:20 -03:00
Alex Szpakowski
2bf6f1bcb7
Added initial support for MFi game controllers on iOS.
2015-09-20 23:08:36 -03:00
Alex Szpakowski
ecfdb10cfa
iOS SDL_GL_CreateContext: Clamp the multisample sample count when the requested value is too high, rather than failing to create the context.
...
This matches the SDL_GL_CreateContext behavior in OS X.
2015-09-15 00:25:07 -03:00
Alex Szpakowski
a506f1cbc7
Windows: Try to use xinput9_1_0.dll if XInput 1.4 and 1.3 are not available.
...
XInput "9.1.0" ships with Windows Vista and 7 systems, but it lacks some features, including support for detecting Guide button presses.
2015-09-14 22:50:55 -03:00
Alex Szpakowski
76fc378837
Fixed the header guard in the darwin SDL_sysjoystick_c.h file.
2015-09-14 22:44:20 -03:00
Alex Szpakowski
82c8825cb5
iOS: Added support for force-touch on capable devices.
2015-09-09 19:08:52 -03:00
Alex Szpakowski
6a32ca7a39
Mac: Fixed SDL_SetWindowSize to set the size of the content area of the window, rather than the total size including decorations.
2015-09-09 13:55:11 -03:00
Alex Szpakowski
42f282cc1b
Fix bug 3081: CMake configuration auto-disables OpenGL ES support on Windows.
...
Thanks to EntranceJew for the patch.
2015-08-28 19:10:46 -03:00
Alex Szpakowski
d154e6c6e3
Fixed bug 3098: CMake project never enables xinput support on Windows.
...
Thanks to EntranceJew for debugging the issue.
2015-08-28 19:05:24 -03:00
Alex Szpakowski
2d63af8eb1
Updated SDL_egl.h to have the latest EGL version and extension information.
2015-08-21 00:19:36 -03:00
Alex Szpakowski
5a3cc7f580
EGL: Added support for sRGB system framebuffers, when the required EGL extension is present.
2015-08-01 15:16:57 -03:00
Alex Szpakowski
c344b734f4
iOS: Avoid generating an OpenGL error (but still fail to create the context) if the specified MSAA sample count is unsupported.
2015-07-19 19:56:16 -03:00
Alex Szpakowski
6ea942dae3
Added MSAA support for OpenGL ES contexts on iOS.
...
Note that extra steps must be taken when using glReadPixels to read the contents of the main OpenGL ES framebuffer on iOS, if multisampling is used. See the OpenGL ES section of README-ios.md for details.
2015-07-19 19:44:40 -03:00