Creating a directional pad
Another fundamental form of video game input is the directional pad.
In this recipe, you will see how to create a convincing 3D-ish directional pad and you will see how to properly process directional pad information in a game situation.