RexOnRoids
RexOnRoids

Reputation: 14040

How to implement a virtual D-Pad on iPhone?

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?

Upvotes: 0

Views: 1001

Answers (1)

Thomas Zoechling
Thomas Zoechling

Reputation: 34253

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.

Upvotes: 1

Related Questions