Making (or emulating) a "D-Pad" on a touch-screen; virtual d-pad

I asked this on Game Development:

With the proliferation of touch based devices, many lacking a true D-Pad, I’m wondering if anyone has any resources on how to emulate a D-Pad on a touch screen? I’m specifically interested in XNA and/or Android code examples.


Graeme Bradbury answered (5 upvotes):

There is an XNA sample of touch thumbsticks here

I would reiterate that a dpad is unlikely to be the right interface for a touch screen like device.

Something like what epic has done with Infinity Blade for the iPhone may give you inspiration Movie Link


Originally posted on Game Development — 12 upvotes. Licensed under CC BY-SA.

signed letter b

Dad. Geek. Gamer. Software developer. Cloud user. Old Car enthusiast.  Blogger.


Top Posts


profile for Nate on Stack Exchange, a network of free, community-driven Q&A sites
a proud member of the blue team of 512KB club
Thoughts, opinions, and ideas shared here are my own. © 2026 Nate Bross.