We are currently migrating Bugzilla to GitHub issues.
Any changes made to the bug tracker now will be lost, so please do not post new bugs or make changes to them.
When we're done, all bug URLs will redirect to their equivalent location on the new bug tracker.

Bug 4028

Summary: SDL_FINGERDOWN/UP/MOTIOIN and SDL_GetTouchFinger inconsistency
Product: SDL Reporter: Peter Kosyh <gl00my>
Component: eventsAssignee: Sam Lantinga <slouken>
Status: NEW --- QA Contact: Sam Lantinga <slouken>
Severity: major    
Priority: P2 CC: sylvain.becker
Version: HG 2.1   
Hardware: All   
OS: All   

Description Peter Kosyh 2018-01-07 19:25:00 UTC
After this patch (Normalize touch events to the render viewport (thanks Sylvain!)) in 2.0.7:

https://github.com/spurious/SDL-mirror/commit/f686a7de990696afb3b6e371723b22843f73a899#diff-5afd80fd540d64019a6f4665e0b1ff1a

We have inconsistency between SDL_FINGERDOWN event and SDL_GetTouchFinger result.
It is so, becouse SDL_AddFinger() does not normalize x and y, so... We have totaly broken situation.

Possible solutions:

1) Revert the patch
2) Patch the SDL_AddFinger() instead event watcher ???
Comment 1 Sylvain 2018-01-08 12:02:16 UTC
Indeed, some inconsistency ... that was bug #2307
Comment 2 Sylvain 2019-10-17 11:45:42 UTC
It's reasonable to say that querying the state returns raw values,!
We can revisit this for SDL 2.1
(see also bug 2442)