Sunday, 2021-06-13

*** jrt is now known as Guest7364702:44
*** inz_ is now known as inz10:33
malsashikknox: 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 years12:39
malsashikknox: that would make this hack not needed anymore https://gitlab.com/sashikknox/tuxracer-touch/-/commit/b05d46cac9b0639ea1e54ea2668566fdd835889912:45
sashikknoxhm, 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
malI need to see how to handle that in sfos releases13:49
malsashikknox: this is the change in sdl https://github.com/libsdl-org/SDL/commit/889cebb7c20d4195e5d4ac344a2175f2490354cc13:51
sashikknoxnormalized_x, it would like x always between 0.0 and 1.0, i think.13:56
sashikknoxanyway, need build it first, to test on real applications13:56
malsashikknox: yes, the coordinates are supposed to be 0-1 as mentioned here https://wiki.libsdl.org/SDL_TouchFingerEvent14:01
malsashikknox: 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 finger14:09
malor is that only if something defines SDL_HINT_TOUCH_MOUSE_EVENTS not sure exactly14:10
sashikknoxmal: looks like you are right, about SDL_HINT_TOUCH_MOUSE_EVENTS17:02
*** frinring_ is now known as frinring22:28

Generated by irclog2html.py 2.17.1 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!