| Summary: | Touch coordinates on retina displays | ||
|---|---|---|---|
| Product: | SDL | Reporter: | brad <bradallred> |
| Component: | video | Assignee: | Sam Lantinga <slouken> |
| Status: | RESOLVED WORKSFORME | QA Contact: | Sam Lantinga <slouken> |
| Severity: | blocker | ||
| Priority: | P2 | CC: | amaranth72, martin.gerhardy |
| Version: | HG 2.0 | ||
| Hardware: | iPhone/iPod touch | ||
| OS: | iOS (All) | ||
|
Description
brad
2012-02-29 22:25:09 UTC
Can you attach the parts of the event code you are using to parse the event?
Did you apply the touch resolutions?
README.touch contains this:
SDL_Touch* inTouch = SDL_GetTouch(event.tfinger.touchId);
if(inTouch == NULL) continue; //The touch has been removed
float x = ((float)event.tfinger.x)/inTouch->xres;
float y = ((float)event.tfinger.y)/inTouch->yres;
Recent SDL versions don't seem to have this bug. |