How to get right values from Views touch event
Posted
by
Pinker
on Stack Overflow
See other posts from Stack Overflow
or by Pinker
Published on 2012-09-22T10:30:38Z
Indexed on
2012/09/24
9:37 UTC
Read the original article
Hit count: 323
I have a problem with implementing touch events on GLSurfaceView. Views size is 1280x696, because of android (tablet) status bar at bottom with soft keys, time etc.., (screen resolution is 1280x800), but OnTouchListener is receiving touch events with coords [646.0,739.0], and thus my gluunproject method fails to return correct values
is there any way to return events that respect these boundaries? or how should I recalculate the position?
© Stack Overflow or respective owner