Sam Lantinga
120c76c84b
Updated copyright for 2022
2022-01-03 09:40:21 -08:00
Sam Lantinga
11ae43ca16
Only lock the pointer for mouse relative mode, there isn't really a concept of grab and confinement on iOS
...
Locking the pointer prevents the on-screen cursor from moving, which isn't what we want with a grab behavior.
Fixes https://github.com/libsdl-org/SDL/issues/4941
2021-11-11 07:51:34 -08:00
Sam Lantinga
27ce914463
Send absolute mouse motion when in normal mouse mode and relative mouse motion when in relative mode on iOS
...
This keeps the SDL cursor in sync with the visible cursor when in normal mouse mode.
2021-11-09 20:51:42 -08:00
Sam Lantinga
9130f7c377
Updated copyright for 2021
2021-01-02 10:25:38 -08:00
Ryan C. Gordon
de6d0ac55a
uikit: Patched to compile on older iOS SDKs.
2020-11-08 18:11:42 -05:00
Sam Lantinga
a3a0ef7527
Added support for low latency mouse and keyboard handling in iOS 14
...
The mouse support in iOS 14.0 has a bug with accumulating duplicate mouse deltas that won't be fixed until iOS 14.1, so we don't enable it until then.
2020-10-15 10:13:44 -07:00
Sam Lantinga
3ac24bfc1a
Fixed mouse drag with an external mouse on iOS
2020-06-08 17:01:50 -07:00
Sam Lantinga
57149c2410
Fixed building with --disable-joystick on iOS
2020-05-27 10:27:20 -07:00
Sam Lantinga
b0b12e46ba
Fixed running on older versions of iOS
2020-04-27 13:31:10 -07:00
Sam Lantinga
14661d3f30
Added support for mousewheel on iOS
2020-04-14 17:31:31 -07:00
Sam Lantinga
3e4856c97f
Fixed mouse button mapping on iOS
2020-04-13 23:07:54 -07:00
Sam Lantinga
e1215e857f
Fixed mouse button mapping on iOS
2020-04-13 22:50:46 -07:00
Sam Lantinga
dbf7f84fd9
Implemented left/right mouse click detection on iOS
2020-04-13 22:29:10 -07:00
Sam Lantinga
171ba00a6a
Hide the mouse cursor appropriately on iOS
2020-04-13 19:44:26 -07:00
Sam Lantinga
6f3fa02e27
Make sure we're using the bounds of the view for our mouse region
2020-04-13 18:25:38 -07:00
Sam Lantinga
cab1ee9cbc
Don't build iOS mouse support on Apple TV
2020-04-13 15:57:04 -07:00
Sam Lantinga
e5d3629931
Added support for new mouse APIs in iOS 13.4
2020-04-13 15:46:12 -07:00
Sam Lantinga
d4f1b520c9
Added support for press/release hardware keyboard events in iOS 13.4
2020-04-08 19:16:31 -07:00
Sam Lantinga
a8780c6a28
Updated copyright date for 2020
2020-01-16 20:49:25 -08:00
Alex Szpakowski
d5ec735a33
Add a windowID field to SDL_TouchFingerEvent (bug #4331 ).
...
This is unimplemented on some platforms and will cause compile errors when building those platform backends for now.
2019-08-01 18:22:12 -03:00
Alex Szpakowski
f4625f52f2
iOS: remove some code which could affect the state of UIViews that aren't owned by SDL.
...
It was originally added to work around an input event problem in the code of a specific app which mixed SDL and native UIViews, but that app solved its problems in a better manner since then.
2019-06-16 13:52:27 -03:00
Sylvain Becker
9d28156f12
Bug 4576: remove touch/mouse duplication for IOS
2019-04-02 17:18:47 +02:00
Sam Lantinga
82758efc46
[iOS DAC] Fix touch events getting from SDL2 to source2.
2019-03-12 14:45:04 -07:00
Sam Lantinga
5e13087b0f
Updated copyright for 2019
2019-01-04 22:01:14 -08:00
Alex Szpakowski
5029d50ea8
Add SDL_TouchDeviceType enum and SDL_GetTouchDeviceType(SDL_TouchID id).
...
Touch device types include SDL_TOUCH_DEVICE_DIRECT (a touch screen with window-relative coordinates for touches), SDL_TOUCH_DEVICE_INDIRECT_ABSOLUTE (a trackpad-style device with absolute device coordinates), and SDL_TOUCH_DEVICE_INDIRECT_RELATIVE (a trackpad-style device with screen cursor-relative coordinates).
Phone screens are an example of a direct device type. Mac trackpads are the indirect-absolute touch device type. The Apple TV remote is an indirect-relative touch device type.
2018-11-10 16:15:48 -04:00
Sam Lantinga
5febdfcece
Fixed whitespace
2018-09-24 11:49:25 -07:00
Sam Lantinga
73c26c204c
Send Apple TV remote input as key events unless it's opened as a joystick, to match Android behavior.
2018-02-06 16:43:31 -08:00
Sam Lantinga
f59b9c8b13
Replaced SDL_HINT_APPLE_TV_REMOTE_SWIPES_AS_ARROW_KEYS with SDL_HINT_TV_REMOTE_AS_JOYSTICK which controls whether remotes on iOS and Android are interpreted as joysticks (the default) or as return/escape/arrow keys.
2018-02-06 15:03:38 -08:00
Sam Lantinga
9338a619f8
Added a hint SDL_HINT_APPLE_TV_REMOTE_SWIPES_AS_ARROW_KEYS to prevent turning Apple TV remote swipes into arrow key events
2018-01-17 17:24:15 -08:00
Sam Lantinga
e3cc5b2c6b
Updated copyright for 2018
2018-01-03 10:03:25 -08:00
Sam Lantinga
45b774e3f7
Updated copyright for 2017
2017-01-01 18:33:28 -08: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
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
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
Sam Lantinga
42065e785d
Updated copyright to 2016
2016-01-02 10:10:34 -08:00
Alex Szpakowski
82c8825cb5
iOS: Added support for force-touch on capable devices.
2015-09-09 19:08:52 -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