Virtual D-Pad?

Monkey Forums/Monkey Programming/Virtual D-Pad?

zoqfotpik(Posted 2012) [#1]
Is there any code out there for a virtual D-pad? Seems like I saw someone talking a while back about a framework he was working on that might include it.

Any ideas on how to program such a thing?


Shinkiro1(Posted 2012) [#2]
I've coded a very basic one.
It's hardcoded to the lower left corner.



Also note that I use PointInRect which is not optimal.
A distance check will give better result I guess because it's radial and therefore better for fingers.


zoqfotpik(Posted 2012) [#3]
Thank you very much...

I will change it to distance check and re-upload it.


erebel55(Posted 2014) [#4]
Sorry to revive such an old thread, but did you ever make the changes noted above?


dopeyrulz(Posted 2014) [#5]
On the Desktop version the Xbox Dpad should now work. Check out Mark's sample app for an example.