You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jan 11, 2019. It is now read-only.
Touch events (touch_began etc) report X and Y values relative to the SurfaceView size instead of the Gosu::Window size.
This was reproduced when creating a Gosu::Window with 320x240 size in landscape mode on an HTC, where I could get X values > 1000 (as I can move the touch outside the screen into soft-button area).
Thanks for trying and reporting errors of Gosu Android. I managed to reproduced the bug but your solution did not work for me, so I went for a different approach. I'll update master right now, please check it out and reopen the issue if the fix did not work.
Touch events (touch_began etc) report X and Y values relative to the SurfaceView size instead of the Gosu::Window size.
This was reproduced when creating a Gosu::Window with 320x240 size in landscape mode on an HTC, where I could get X values > 1000 (as I can move the touch outside the screen into soft-button area).
From logs:
I/System.out( 649): MainGameWindow - 320, 240
I/System.out( 649): SurfaceView: 960, 540
I/System.out( 649): [GameScreen] draw... @ (1063, 531)
The text was updated successfully, but these errors were encountered: