godot/platform/iphone
Pedro J. Estébanez de9d40a953 Implement universal translation of touch to mouse
Now generating mouse events from touch is optional (on by default) and it's performed by `InputDefault` instead of having each OS abstraction doing it. (*)

The translation algorithm waits for a touch index to be pressed and tracks it translating its events to mouse events until it is raised, while ignoring other pointers.

Furthermore, to avoid an stuck "touch mouse", since not all platforms may report touches raised when the window is unfocused, it checks if touches are still down by the time it's focused again and if so it resets the state of the emulated mouse.

*: In the case of Windows, since it already provides touch-to-mouse translation by itself, "echo" mouse events are filtered out to have it working like the rest.

On X11 a little hack has been needed to avoid a case of a spurious mouse motion event that is generated during touch interaction.

Plus: Improve/fix tracking of current mouse position.

** Summary of changes to settings: **

- `display/window/handheld/emulate_touchscreen` becomes `input/pointing_devices/emulate_touch_from_mouse`
- New setting: `input/pointing_devices/emulate_mouse_from_touch`
2018-04-30 19:03:38 +02:00
..
export iPhone X support and iOS-related fixes 2018-04-11 14:53:24 +07:00
globals Add missing copyright headers and fix formatting 2018-01-05 01:22:23 +01:00
app_delegate.h Add missing copyright headers and fix formatting 2018-01-05 01:22:23 +01:00
app_delegate.mm iPhone X support and iOS-related fixes 2018-04-11 14:53:24 +07:00
detect.py Allow configuring iOS export 2017-11-21 01:16:49 +07:00
game_center.h Add missing copyright headers and fix formatting 2018-01-05 01:22:23 +01:00
game_center.mm Add missing copyright headers and fix formatting 2018-01-05 01:22:23 +01:00
gl_view.h iPhone X support and iOS-related fixes 2018-04-11 14:53:24 +07:00
gl_view.mm Implement universal translation of touch to mouse 2018-04-30 19:03:38 +02:00
godot_iphone.cpp Add missing copyright headers and fix formatting 2018-01-05 01:22:23 +01:00
icloud.h Add missing copyright headers and fix formatting 2018-01-05 01:22:23 +01:00
icloud.mm Add missing return statements (iOS and server). 2018-02-25 01:11:03 +02:00
in_app_store.h add restore purchases for iOS 2018-02-22 14:28:37 -05:00
in_app_store.mm add restore purchases for iOS 2018-02-22 14:28:37 -05:00
ios.h Add missing copyright headers and fix formatting 2018-01-05 01:22:23 +01:00
ios.mm Add missing copyright headers and fix formatting 2018-01-05 01:22:23 +01:00
logo.png Fixed iCCp chunk in pngs 2016-06-22 21:13:29 +02:00
main.m Add missing copyright headers and fix formatting 2018-01-05 01:22:23 +01:00
os_iphone.cpp Implement universal translation of touch to mouse 2018-04-30 19:03:38 +02:00
os_iphone.h Implement universal translation of touch to mouse 2018-04-30 19:03:38 +02:00
platform_config.h fix iOS build - error due to GLES2 missing include (with the advice from bruvzg[m] on irc) 2018-03-13 10:42:23 +01:00
platform_refcount.h Add missing copyright headers and fix formatting 2018-01-05 01:22:23 +01:00
power_iphone.cpp Fix UpdatePowerInfo method implementation in PowerIphone class 2018-03-31 02:52:37 +03:00
power_iphone.h Update copyright statements to 2018 2018-01-01 14:40:47 +01:00
SCsub Fix IPhone and OSX cross compilation 2018-03-28 19:08:20 +02:00
sem_iphone.cpp Add missing copyright headers and fix formatting 2018-01-05 01:22:23 +01:00
sem_iphone.h Add missing copyright headers and fix formatting 2018-01-05 01:22:23 +01:00
view_controller.h Add missing copyright headers and fix formatting 2018-01-05 01:22:23 +01:00
view_controller.mm Add missing copyright headers and fix formatting 2018-01-05 01:22:23 +01:00