move drawable images bye keys

Tutorials concerning the OpenGL® ES cross-platform API for full-function 2D and 3D graphics on the Google-Android platform.

move drawable images bye keys

Postby mala » Tue Mar 16, 2010 12:24 pm

Hi all,
I am trying to make an application. I want to move an image, that I brought from drawables, by the arrow keys. i.e right, left, up and down.
I took an large image as my background. and put the small image on it. I want to move the small image by the keys.
I tried with onkeydown(KeyCode, Event) function. But it will not work. Please tell me where exactly have I to put this method and how?
Also is it necessary to take thread with such events???




Thanks
mala
Junior Developer
Junior Developer
 
Posts: 17
Joined: Thu Jan 07, 2010 5:57 am
Location: bangalore

Top

Return to Android 2D/3D Graphics - OpenGL Tutorials

Who is online

Users browsing this forum: No registered users and 1 guest