virtualx-engine/main
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
..
tests Add radio-button-looking entries to PopupMenu 2018-03-27 19:19:45 +02:00
app_icon.png Use new Godot icon consistently everywhere 2017-05-17 19:53:59 +02:00
default_controller_mappings.h SCons: properly close files when reading controller mappings 2018-03-16 08:40:33 +01:00
gamecontrollerdb.txt Generate controller mapping class from one or more SDL2 database files 2018-03-05 22:23:49 -08:00
gamecontrollerdb_204.txt Generate controller mapping class from one or more SDL2 database files 2018-03-05 22:23:49 -08:00
gamecontrollerdb_205.txt Generate controller mapping class from one or more SDL2 database files 2018-03-05 22:23:49 -08:00
godotcontrollerdb.txt Generate controller mapping class from one or more SDL2 database files 2018-03-05 22:23:49 -08:00
input_default.cpp Implement universal translation of touch to mouse 2018-04-30 19:03:38 +02:00
input_default.h Implement universal translation of touch to mouse 2018-04-30 19:03:38 +02:00
main.cpp Implement universal translation of touch to mouse 2018-04-30 19:03:38 +02:00
main.h Makes project manager never initialize mono debug. 2018-02-16 16:15:35 +01:00
performance.cpp Add missing copyright headers and fix formatting 2018-01-05 01:22:23 +01:00
performance.h Add missing copyright headers and fix formatting 2018-01-05 01:22:23 +01:00
SCsub Fix segfault on x11 2018-04-05 05:23:38 +03:00
splash.png New splash screen. 2017-10-13 16:40:22 -05:00
splash_editor.png Added custom editor splash (including sponsor logo). 2017-12-16 16:11:13 -03:00