views:

212

answers:

1

I'm having trouble implementing a virtual D-pad in an EAGLView (OpenGL ES). I thought this would be simple but it is not. It is not so straightforward to determine whether a touch is on a certain portion of the D-Pad at any given time. Does anyone know of some good (relevant, please) resources online or could maybe post some source?

+1  A: 

You can take a look at the iPhone Quake 3 port.
The relevant file is here.
One of the authors has a blog post describing that technique.

weichsel
Cool, Thanks dude!
RexOnRoids