| Summary: | Getting both mouse events and finger events | ||
|---|---|---|---|
| Product: | SDL | Reporter: | Moritz Bruder <muesli4> |
| Component: | events | Assignee: | Sam Lantinga <slouken> |
| Status: | NEW --- | QA Contact: | Sam Lantinga <slouken> |
| Severity: | normal | ||
| Priority: | P2 | CC: | sylvain.becker |
| Version: | 2.0.10 | ||
| Hardware: | ARM | ||
| OS: | Linux | ||
| Attachments: | Example that does not reproduce the error. | ||
|
Description
Moritz Bruder
2019-09-15 12:38:20 UTC
Hi, how are set the hints SDL_HINT_TOUCH_MOUSE_EVENTS SDL_HINT_MOUSE_TOUCH_EVENTS https://hg.libsdl.org/SDL/file/2ede888544ac/include/SDL_hints.h#l313 please log also the id: TouchId and MouseId https://hg.libsdl.org/SDL/file/2ede888544ac/include/SDL_events.h#l438 https://hg.libsdl.org/SDL/file/2ede888544ac/include/SDL_events.h#l258 also, try the latest SDL, and do you know which sdl code is used with xserver ? see bug 1612 because it triggers SendMouseMotion in EnterNotify and LeaveNotify https://hg.libsdl.org/SDL/annotate/84bbd421d62f/src/video/x11/SDL_x11events.c#l315 which might be incorrect or inconsistent with other backends Besides, using atexit + SDL_Quit has proved to cause some trouble https://github.com/muesli4/mpd-touch-screen-gui/blob/36ebdb473e2a145bcf425156f7de3b062e7a2acc/src/main.cpp#L62 |