virtualx-engine/platform/uwp
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 Fix typos with codespell 2018-02-22 12:17:06 +01:00
app.cpp Implement universal translation of touch to mouse 2018-04-30 19:04:35 +02:00
app.h Implement universal translation of touch to mouse 2018-04-30 19:04:35 +02:00
detect.py Cleanup old references to GLES2 renderer 2017-11-19 17:52:18 +01:00
gl_context_egl.cpp Add missing copyright headers and fix formatting 2018-01-05 01:22:23 +01:00
gl_context_egl.h Add missing copyright headers and fix formatting 2018-01-05 01:22:23 +01:00
joypad_uwp.cpp Update copyright statements to 2018 2018-01-01 14:40:47 +01:00
joypad_uwp.h Add missing copyright headers and fix formatting 2018-01-05 01:22:23 +01:00
logo.png Enhanced iOS and UWP logo on Export dialog 2017-11-29 17:34:01 +07:00
os_uwp.cpp Add missing copyright headers and fix formatting 2018-01-05 01:22:23 +01:00
os_uwp.h Add missing copyright headers and fix formatting 2018-01-05 01:22:23 +01:00
platform_config.h Add missing copyright headers and fix formatting 2018-01-05 01:22:23 +01:00
power_uwp.cpp Update copyright statements to 2018 2018-01-01 14:40:47 +01:00
power_uwp.h Update copyright statements to 2018 2018-01-01 14:40:47 +01:00
SCsub Move windows networking class to drivers/windows/ 2017-12-15 18:25:29 +01:00
thread_uwp.cpp Add missing copyright headers and fix formatting 2018-01-05 01:22:23 +01:00
thread_uwp.h Add missing copyright headers and fix formatting 2018-01-05 01:22:23 +01:00