| Summary: | Wrong touch input coords values | ||
|---|---|---|---|
| Product: | SDL | Reporter: | 000whitedragon000 |
| Component: | events | Assignee: | Sam Lantinga <slouken> |
| Status: | NEW --- | QA Contact: | Sam Lantinga <slouken> |
| Severity: | critical | ||
| Priority: | P2 | CC: | Roung1990 |
| Version: | 2.0.8 | ||
| Hardware: | ARM | ||
| OS: | Android (All) | ||
|
Description
000whitedragon000
2018-04-06 09:57:46 UTC
I confirm the bug when use SDL_RenderSetLogicalSize() This isn't a bug. You just need to multiply it by the screenwidth.
int Xclick = e.tfinger.x * SCREENWIDTH;//technically this is a float value, but we can make it int fine.
int Yclick = e.tfinger.y * SCREENWIDTH;
SDL_Log(" X %d Y %d \n",Xclick , Yclick );
|