MultiTouch Virtual Joypad manager.
Online Demo: http://www.julien-pierron.com/sample?sample=jpdemo
Forum Link: http://www.shiva-engine.com/forum/viewtopic.php?f=82&t=29258
Req. ShiVa Version:
ShiVa 1.9.2 Engines
Plugin Platform Compatibility:
iOS, Android, WinRT ARM/Phone 8, WinRT x86/_64, Windows Legacy, Mac OS X, Linux, Flash, Web Browser, Palm, Marmalade, BlackBerry, Windows Phone 7, Playstation 3, Playstation 4, Xbox 360, Xbox One, Wii, tvOS
Seller information: Julien Pierron
JPVirtualJoypad is the easy way to get virtual joypads work in your game in no time.
Provide to JPVirtualJoypad the graphics (HUD components) of your virtual joypad sticks/buttons and JPVirtualJoypad will do the logic for you.
Your virtual joypads will work just like a real joypad, and will send their values to the native onJoypadStickMove handler. This is the same with the virtual buttons and the onJoypadButtonDown/Up handlers.
JPVirtualJoypad will move your stick components, the only thing you have to do is to handle the values of the sticks. JPVirtualJoypad takes a few optional parameters. You can for instance set the visibility condition of the back and thumb textures of the stick. For instance the thumb could be visible only when the stick is not active and the thumb when it is active.
You can also tell JPVirtualJoypad that a stick must return values in a limited number of directions, for instance in 8 directions like the directional arrows of the playstation gamepad.
It also has an extra function, transformStickValues, that helps you apply a dead zone to the joypad stick values.
Another great feature is the possibillity to use a tweener curve to the stick values. This way the stick values can be non linear when the stick moves. JPTweener is required for this feature.
General information :
- This product is compatible with both ShiVa 1.9.2 and 2.0.
- ShiVa 1.9.2 or greater
- The JPMultiTouch pack is required
- LUA project (not compatible with full c++ projects, compatible with LUA projects that use c++ plugins)
You can find an introduction on the packs and how to load them in your game here:
API & Instructions