virtualx-engine/platform/iphone
Pedro J. Estébanez e10a2e5999 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.
2018-04-30 19:04:35 +02:00
..
export Improve missing iOS loading screen error message 2018-01-07 21:50:41 +01: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 Add missing copyright headers and fix formatting 2018-01-05 01:22:23 +01: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 Update copyright statements to 2018 2018-01-01 14:40:47 +01:00
gl_view.mm Implement universal translation of touch to mouse 2018-04-30 19:04:35 +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-27 00:06:01 +01:00
in_app_store.h add restore purchases for iOS 2018-03-28 22:16:07 +02:00
in_app_store.mm add restore purchases for iOS 2018-03-28 22:16:07 +02: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:04:35 +02:00
os_iphone.h Implement universal translation of touch to mouse 2018-04-30 19:04:35 +02:00
platform_config.h Add missing copyright headers and fix formatting 2018-01-05 01:22:23 +01:00
platform_refcount.h Add missing copyright headers and fix formatting 2018-01-05 01:22:23 +01:00
power_iphone.cpp Update copyright statements to 2018 2018-01-01 14:40:47 +01:00
power_iphone.h Update copyright statements to 2018 2018-01-01 14:40:47 +01:00
SCsub disable caching for targets using helper functions 2017-11-28 23:24:12 -04: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