Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

AppGameKit Classic Chat / T2: GetPointerY Bug?

Author
Message
Greg_C
13
Years of Service
User Offline
Joined: 22nd May 2010
Location:
Posted: 1st Mar 2012 23:38 Edited at: 2nd Mar 2012 03:01
Maybe I am just doing something wrong but I am trying to get the Y value when I tap the device and the X value gets returned correctly but the Y value is not correct. For instance when I click near the top left corner of the screen (0,0) the X gets returned correctly and is close to 0 but the the Y value is in the -60's.



Why is the Y value returning a negative number?

EDIT:
Never mind
Paul Johnston
TGC Developer
21
Years of Service
User Offline
Joined: 16th Nov 2002
Location: United Kingdom
Posted: 5th Mar 2012 15:59
X or Y can be negative if you tap in the black border area of the screen, as these are technically outside your app's visible area.

Login to post a reply

Server time is: 2024-05-02 02:06:59
Your offset time is: 2024-05-02 02:06:59