The SDL forums have moved to discourse.libsdl.org.
This is just a read-only archive of the previous forums, to keep old links working.


SDL Forum Index
SDL
Simple Directmedia Layer Forums
Touch triggers mouse events on Windows
yaronct


Joined: 10 Mar 2015
Posts: 9
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?
Touch triggers mouse events on Windows
Alex Szpakowski
Guest

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
Quote:
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 mailinghttp://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org
yaronct


Joined: 10 Mar 2015
Posts: 9
I already check "which" and indeed it doesn't work in Windows. Too bad...
Malkierian


Joined: 07 Apr 2015
Posts: 5
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.