Jul 12, 2012 Replies: 4 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. Attachments GamePad.zip GamePad.zip 9.6 KB · Views: 1,993 Click to expand...
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.
T Toley Active Member Licensed User Longtime User Jul 14, 2012 #2 Hi Erel, this is really cool and works very well. I just have a question, can we make the joystick bigger for large tablet ?
Hi Erel, this is really cool and works very well. I just have a question, can we make the joystick bigger for large tablet ?
Erel B4X founder Staff member Licensed User Longtime User Jul 15, 2012 #3 Yes. You can change the value of 'length' in the main activity.
J JTKEK Member Licensed User Longtime User Aug 2, 2015 #4 how to add the gamepad into a panel? so i can control the visible of gamepad
Erel B4X founder Staff member Licensed User Longtime User Aug 2, 2015 #5 You can pass a panel instead of the activity in the AddToActivity method.