I am using SDL2 with 2 touchscreen at the same time, each one with a fullscreen window.
I am facing an issue with the windowID :
- The 2 windows have the windowID 2 and 3
- When i touch the window 2 screen, the windowID field of the SDL_MouseButtonEvent struct is 3
- When i touch the window 3 screen, the windowID field of the SDL_MouseButtonEvent struct is 2
Any clue on that ?
No idea, but you may want to tell if you are using X11, Macosx, Mir,
Wayland, Windows …
Also, I post to remind this patch :
https://bugzilla.libsdl.org/show_bug.cgi?id=2307
On X11, touch event positions are given in pixels whereas on
IOS/Android there are in relative coordinates ( [0; 1] ) .
Would be nice to have all this consistent.
Cheers,
SylvainOn Wed, Jul 2, 2014 at 10:44 AM, SladeCraven wrote:
I am using SDL2 with 2 touchscreen at the same time, each one with a
fullscreen window.
I am facing an issue with the windowID :
- The 2 windows have the windowID 2 and 3
- When i touch the window 2 screen, the windowID field of the
SDL_MouseButtonEvent struct is 3
- When i touch the window 3 screen, the windowID field of the
SDL_MouseButtonEvent struct is 2
Any clue on that ?
SDL mailing list
SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org
–
Sylvain Becker