de9d40a953
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` |
||
---|---|---|
.. | ||
copymem.h | ||
dir_access.cpp | ||
dir_access.h | ||
file_access.cpp | ||
file_access.h | ||
input.cpp | ||
input.h | ||
input_event.cpp | ||
input_event.h | ||
keyboard.cpp | ||
keyboard.h | ||
main_loop.cpp | ||
main_loop.h | ||
memory.cpp | ||
memory.h | ||
mutex.cpp | ||
mutex.h | ||
os.cpp | ||
os.h | ||
rw_lock.cpp | ||
rw_lock.h | ||
SCsub | ||
semaphore.cpp | ||
semaphore.h | ||
shell.cpp | ||
shell.h | ||
thread.cpp | ||
thread.h | ||
thread_dummy.cpp | ||
thread_dummy.h | ||
thread_safe.cpp | ||
thread_safe.h | ||
threaded_array_processor.h |