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
SDL MultiTouch Behaviour
Meldryt


Joined: 22 Oct 2014
Posts: 36
Location: Munich
I have noticed a weird problem in the SDL Multitouch event handling.

I keep track of my current input for all of these events.

Code:
/* Touch events */
    SDL_FINGERDOWN      = 0x700,
    SDL_FINGERUP,
    SDL_FINGERMOTION,

    /* Gesture events */
    SDL_DOLLARGESTURE   = 0x800,
    SDL_DOLLARRECORD,
    SDL_MULTIGESTURE,

.

When i move one finger i get only SDL_FINGERMOTION.
With two fingers i get SDL_FINGERMOTION and SDL_MULTIGESTURE.
So far so good.

Now when i try two move two fingers together, on a certain distance (very close),
i get a SDL_FINGERUP event for the first finger (the finger that became my first finger from the first SDL_FINGERDOWN event).

I dont if this behaviour is normal, for example, to avoid two finger touch at the same location