Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Different coordinate system on different iOS devices #18

Closed
bpawel10 opened this issue Jun 3, 2016 · 1 comment
Closed

Different coordinate system on different iOS devices #18

bpawel10 opened this issue Jun 3, 2016 · 1 comment

Comments

@bpawel10
Copy link

bpawel10 commented Jun 3, 2016

Hi,

on newer iPhones, for example iPhone 5S or 6S, normal touch coordinates work fine. However, when I test it on my iPhone 4, touch coordinates are very strange and I need to change it to use:

screenX = screenY;
screenY = Gdx.graphics.getHeight()-screenX;

and then it works.

@MobiDevelop
Copy link
Member

See: libgdx/libgdx#3954

Would prefer not to track this in multiple places.

dasisdormax pushed a commit to pias-education/robovm that referenced this issue Jul 27, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants