virtualx-engine/scene
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
..
2d Fix uninitialized data in Sprite::_get_rects() 2018-03-28 23:54:10 +02:00
3d Added pitch scale property to AudioStreamPlayer, AudioStreamPlayer2D and AudioStreamPlayer3D 2018-03-28 22:43:44 +02:00
animation Remove duplicate "autoplay" property 2018-01-25 16:17:35 +02:00
audio Added pitch scale property to AudioStreamPlayer, AudioStreamPlayer2D and AudioStreamPlayer3D 2018-03-28 22:43:44 +02:00
gui Fixes infinite loop in GridContainer 2018-03-29 00:41:03 +02:00
main Implement universal translation of touch to mouse 2018-04-30 19:04:35 +02:00
resources Add an hinting mode setting to DynamicFonts 2018-03-28 22:56:04 +02:00
register_scene_types.cpp BMFont loading direct support from .fnt files. 2018-01-16 17:58:04 -03:00
register_scene_types.h Add missing copyright headers and fix formatting 2018-01-05 01:22:23 +01:00
scene_string_names.cpp Renamed tree_exited to tree_exiting. tree_exited is now used for actual out of tree notification. 2018-01-12 08:29:24 -03:00
scene_string_names.h Renamed tree_exited to tree_exiting. tree_exited is now used for actual out of tree notification. 2018-01-12 08:29:24 -03:00
SCsub disable caching for targets using helper functions 2017-11-28 23:24:12 -04:00