e10a2e5999
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. |
||
---|---|---|
.. | ||
export | ||
globals | ||
app_delegate.h | ||
app_delegate.mm | ||
detect.py | ||
game_center.h | ||
game_center.mm | ||
gl_view.h | ||
gl_view.mm | ||
godot_iphone.cpp | ||
icloud.h | ||
icloud.mm | ||
in_app_store.h | ||
in_app_store.mm | ||
ios.h | ||
ios.mm | ||
logo.png | ||
main.m | ||
os_iphone.cpp | ||
os_iphone.h | ||
platform_config.h | ||
platform_refcount.h | ||
power_iphone.cpp | ||
power_iphone.h | ||
SCsub | ||
sem_iphone.cpp | ||
sem_iphone.h | ||
view_controller.h | ||
view_controller.mm |