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 1463 - SDL_touch events reported with wrong values
Summary: SDL_touch events reported with wrong values
Status: RESOLVED INVALID
Alias: None
Product: SDL
Classification: Unclassified
Component: events (show other bugs)
Version: HG 2.0
Hardware: iPhone/iPod touch iOS 5
: P2 normal
Assignee: Sam Lantinga
QA Contact: Sam Lantinga
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-04-07 08:30 UTC by Joseba García Echebarria
Modified: 2013-03-01 01:26 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Joseba García Echebarria 2012-04-07 08:30:43 UTC
When running the provided testgesture.c in the iOS simulator for the latest HG revision, the output looks like this:
INFO: Finger: 110913776 down - x: 20206, y: 3822
INFO: Finger: 110913776,x: 0, y: 20206
INFO: Finger: 110913776,x: 0, y: 20206
[...]
INFO: Finger: 110913776,x: 0, y: 25531
INFO: Finger: 110913776,x: 0, y: 25736
INFO: Finger: 110913776,x: 0, y: 25941
INFO: Finger: 110913776 up - x: 25941, y: 24576

I'd say this is wrong, even though the application behaves correctly for some reason.
Comment 1 wboe 2012-12-07 08:40:52 UTC
For Android similar troubles. In this case testgesture.c draws its touch traces mirrored around the centre of the screen. At that all my Android apps are broken after recompiling with newest SDL distribution!

wboe
Comment 2 wboe 2012-12-13 01:45:10 UTC
Me again. The wrong behavior with Android does not exist, it probably was the result of non-matching libraries. The build system is not fool-proof, I try to find out what went wrong and how to avoid it.
Comment 3 Sam Lantinga 2013-03-01 01:26:45 UTC
Just noting this wasn't a bug in SDL.