{"push_id":2489016607,"size":1,"distinct_size":1,"ref":"refs/heads/improve-gui-touch","head":"04e34736196802962c8450f362c7368eb9c3241c","before":"b1fbeb9cc3958dfbfaa8e3e016141f9b22cb2dd9","commits":[{"sha":"04e34736196802962c8450f362c7368eb9c3241c","author":{"name":"Pedro J. Estébanez","email":"8fdd63cccc9be6b3b2be3da873421d24f15f2171@gmail.com"},"message":"Implement universal translation of touch to mouse\n\nNow generating mouse events from touch is optional (on by default on mobile, off on desktop) and it's performed by `InputDefault` instead of having each OS abstraction doing it. (*)\n\nThe 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.\n\nFurthermore, 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.\n\n*: 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.\nFurthermore, on X11 a little hack has been needed to avoid a case of a spurious mouse motion event that is generated during touch interaction.\n\nPlus: Improve/fix tracking of current mouse position.\n\n** Summary of changes to settings: **\n\n- `display/window/handheld/emulate_touchscreen` becomes `input/pointing_devices/emulate_touch_from_mouse`\n- New setting: `input/pointing_devices/emulate_mouse_from_touch`","distinct":true,"url":"https://api.github.com/repos/RandomShaper/godot/commits/04e34736196802962c8450f362c7368eb9c3241c"}]}
{"actor":{"display_login":"RandomShaper"}}