Sam Lantinga
8f78f5bb94
Fixed build on Apple TV
2017-02-02 16:56:02 -08:00
Sam Lantinga
45b774e3f7
Updated copyright for 2017
2017-01-01 18:33:28 -08:00
Sam Lantinga
ad26769cd7
Fixed compile errors on various platforms
2016-12-22 18:43:00 -07:00
Philipp Wiesemann
97aa577589
Fixed empty parameter list in signatures of internal functions.
2016-11-16 22:08:51 +01:00
Sam Lantinga
27d4f09929
Implemented SDL_GetHintBoolean() to make it easier to check boolean hints
2016-10-07 23:40:44 -07: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
Sam Lantinga
925859aaa6
Fixed accidental call to SDL_PrivateJoystickHat()
2016-09-13 18:43:55 -07: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
Ryan C. Gordon
35e564a694
ios: patched to compile.
2016-08-26 15:46:29 -04:00
Sam Lantinga
ad1bfea5a0
Added SDL_PrivateJoystickAdded() and SDL_PrivateJoystickRemoved()
...
Updated the removal code to iterate over all joystick add messages instead of just the first one.
2016-08-26 12:18:08 -07:00
Sam Lantinga
42065e785d
Updated copyright to 2016
2016-01-02 10:10:34 -08: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
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
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
Philipp Wiesemann
774b077513
iOS: Fixed pointer dereference after free.
2015-09-21 21:19:37 +02:00
Alex Szpakowski
2bf6f1bcb7
Added initial support for MFi game controllers on iOS.
2015-09-20 23:08:36 -03:00
Philipp Wiesemann
0e45984fa0
Fixed crash if initialization of EGL failed but was tried again later.
...
The internal function SDL_EGL_LoadLibrary() did not delete and remove a mostly
uninitialized data structure if loading the library first failed. A later try to
use EGL then skipped initialization and assumed it was previously successful
because the data structure now already existed. This led to at least one crash
in the internal function SDL_EGL_ChooseConfig() because a NULL pointer was
dereferenced to make a call to eglBindAPI().
2015-06-21 17:33:46 +02:00