Hi guys! Finally writing my first Android program.
I've searched around and looked and looked and I can't seem to find a tutorial or even code to get the input coords for the touchscreen.
Like when some games place some item right under your finger (airhockey?)
but I only really need the X value.
Need it to be efficient, and also to detect when the user lifts the finger.
Right now I'm just trying to make a green block move across the screen with the finger.
I took the 2d tutorial http://www.anddev.org/2d_tutorial-t3120.html
made the box not move automatically and I want to tie it to a finger but I can't find a way to do that.
I read about the GestureDetector, but I can't find a way to get the X coordinant from it.
I also read that the GestureDetector can be slow in gaming applications, which is what I'm intending to come out with
Any help would greatly be appreciated.