-
-
Notifications
You must be signed in to change notification settings - Fork 10.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
SDL2 + Touch on linux doesn't work correctly #8150
Comments
This is very strange indeed, because if you look inside I suppose you would need to investigate the code in (Unrelated to your specific issue but: your event loop should be processed above the NewFrame calls, otherwise your events will be processed one frame late) |
Commenting out the |
Thanks for investigating. I see that the event handler by writing to Typically when you do a mouse-down and drag you want the app to receive mouse movement even outside the mouse boundaries. I'm finding it odd that this break touch inputs. I would say it might be a bug in SDL2. |
It works with SDL3, but give double mouse down/up events. Ie:
Testcode:
|
This shouldn’t be a problem at least for the imgui backends. So i guess this is a bug in SDL2, maybe fixed in latest SDL2 I don’t know. Feedback may be best addressed to SDL repository. |
Version/Branch of Dear ImGui:
Version 1.91.5, Branch: master
Back-ends:
imgui_impl_sdl2.cpp + imgui_impl_sdlrenderer2.cpp
Compiler, OS:
Arch Linux + gcc version 14.2.1 20240910 + SDL 2.30.9
Full config/build information:
Details:
Hi,
My issue is that touch events stop working after the first tap on linux with the SDL2 backend. The attached testcode gives the following output and nothing more, even with multiple taps. Normal mouse buttons continue to work correctly.
Strange thing is when I comment out the call to
ImGui_ImplSDL2_ProcessEvent
, SDL reports the touch events correctly.Also it works fine on Windows.
Screenshots/Video:
No response
Minimal, Complete and Verifiable Example code:
The text was updated successfully, but these errors were encountered: