virtualx-engine/platform/windows
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 Add missing copyright headers and fix formatting 2018-01-05 01:22:23 +01:00
context_gl_win.cpp Add missing copyright headers and fix formatting 2018-01-05 01:22:23 +01:00
context_gl_win.h Add missing copyright headers and fix formatting 2018-01-05 01:22:23 +01:00
crash_handler_win.cpp Add missing copyright headers and fix formatting 2018-01-05 01:22:23 +01:00
crash_handler_win.h Add missing copyright headers and fix formatting 2018-01-05 01:22:23 +01:00
ctxgl_procaddr.cpp Add missing copyright headers and fix formatting 2018-01-05 01:22:23 +01:00
ctxgl_procaddr.h Add missing copyright headers and fix formatting 2018-01-05 01:22:23 +01:00
detect.py Fix typos with codespell 2018-02-22 12:17:06 +01:00
godot.ico Make the Windows icon file smaller 2017-06-20 14:38:50 +02:00
godot_res.rc Refactor version macros and fix related bugs 2018-02-24 01:34:34 +01:00
godot_win.cpp Add missing copyright headers and fix formatting 2018-01-05 01:22:23 +01:00
joypad.cpp Add missing copyright headers and fix formatting 2018-01-05 01:22:23 +01:00
joypad.h Add missing copyright headers and fix formatting 2018-01-05 01:22:23 +01:00
key_mapping_win.cpp Add missing copyright headers and fix formatting 2018-01-05 01:22:23 +01:00
key_mapping_win.h Add missing copyright headers and fix formatting 2018-01-05 01:22:23 +01:00
lang_table.h 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
os_windows.cpp Implement universal translation of touch to mouse 2018-04-30 19:04:35 +02:00
os_windows.h Added OS::center_window to center the window precisely on desktop platforms 2018-02-19 22:14:05 +01:00
platform_config.h Add missing copyright headers and fix formatting 2018-01-05 01:22:23 +01:00
power_windows.cpp Update copyright statements to 2018 2018-01-01 14:40:47 +01:00
power_windows.h Update copyright statements to 2018 2018-01-01 14:40:47 +01:00
SCsub PEP3101 applied with changing old type string formatting as new ones 2018-02-19 22:25:41 +01:00
windows_terminal_logger.cpp Update copyright statements to 2018 2018-01-01 14:40:47 +01:00
windows_terminal_logger.h Update copyright statements to 2018 2018-01-01 14:40:47 +01:00