Touch triggers mouse events on Windows

Hi,

When I touch the screen I get both touch events and mouse events. However I want to handle them differently, so is it possible to make touch trigger touch events only, and not mouse events?

Normally you could check the ?which" member of the mouse event structs to see if it?s equal to SDL_TOUCH_MOUSEID, but I believe that won?t work properly in Windows at the moment: https://bugzilla.libsdl.org/show_bug.cgi?id=2726 https://bugzilla.libsdl.org/show_bug.cgi?id=2726> On Mar 16, 2015, at 5:56 PM, yaronct wrote:

Hi,

When I touch the screen I get both touch events and mouse events. However I want to handle them differently, so is it possible to make touch trigger touch events only, and not mouse events?


SDL mailing list
SDL at lists.libsdl.org <mailto:SDL at lists.libsdl.org>
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org

I already check “which” and indeed it doesn’t work in Windows. Too bad…

yaronct wrote:

I already check “which” and indeed it doesn’t work in Windows. Too bad…

Personally I would love to have a switch that enables or disables the feeds, but I was wondering if I could have a look at your event switch code? I was having a bit of trouble with it myself before I figured out how to separate them, I think I might be able to help.