*** jrt is now known as Guest73647 | 02:44 | |
*** inz_ is now known as inz | 10:33 | |
mal | sashikknox: hi, I noticed that upstream SDL had a fix that will change the way touch input coordinates are reported in wayland backend which would probably break all current apps, not very nice that such a bug has been in the code for years | 12:39 |
---|---|---|
mal | sashikknox: that would make this hack not needed anymore https://gitlab.com/sashikknox/tuxracer-touch/-/commit/b05d46cac9b0639ea1e54ea2668566fdd8358899 | 12:45 |
sashikknox | hm, i'll try build clean SDL2 from master (without sailfishos patches), and test it, thanks for information. Any way, i always can built in SDL2 statically ) | 13:47 |
mal | I need to see how to handle that in sfos releases | 13:49 |
mal | sashikknox: this is the change in sdl https://github.com/libsdl-org/SDL/commit/889cebb7c20d4195e5d4ac344a2175f2490354cc | 13:51 |
sashikknox | normalized_x, it would like x always between 0.0 and 1.0, i think. | 13:56 |
sashikknox | anyway, need build it first, to test on real applications | 13:56 |
mal | sashikknox: yes, the coordinates are supposed to be 0-1 as mentioned here https://wiki.libsdl.org/SDL_TouchFingerEvent | 14:01 |
mal | sashikknox: if I understand the code of https://github.com/libsdl-org/SDL/blob/main/src/events/SDL_touch.c correctly touch input by default generates synthetic mouse events for the first finger | 14:09 |
mal | or is that only if something defines SDL_HINT_TOUCH_MOUSE_EVENTS not sure exactly | 14:10 |
sashikknox | mal: looks like you are right, about SDL_HINT_TOUCH_MOUSE_EVENTS | 17:02 |
*** frinring_ is now known as frinring | 22:28 |
Generated by irclog2html.py 2.17.1 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!