This class implements a multitouch gamepad made of two "joysticks":
The gamepad is made of a transparent panel. It uses Agraham's Gestures library in order to support multitouch.
The gamepad doesn't raise any events. Instead the developer is expected to periodically fetch the two joysticks values with: GetLeftValue and GetRightValue. Usually this is done with the main game timer.
In this example each joystick moves a small rectangle. You can instead use one joystick for movement and the other for different actions.
The gamepad is made of a transparent panel. It uses Agraham's Gestures library in order to support multitouch.
The gamepad doesn't raise any events. Instead the developer is expected to periodically fetch the two joysticks values with: GetLeftValue and GetRightValue. Usually this is done with the main game timer.
In this example each joystick moves a small rectangle. You can instead use one joystick for movement and the other for different actions.