Top sellers

Android Joystick

Android Joystick
Product Code: SD_AndroidJoy
Availability: In Stock
Built for: Android
Product Version: 1.0.8
Online Demo: www.silicondroid.com/shiva/androidjoy/Android_Joy.apk
Forum Link: http://www.shivaengine.com/developer/forum/viewtopic.php?f=76&t=30472
Req. ShiVa Version: ShiVa 1.9.2 Engines
Plugin Platform Compatibility: Android
Price: $29.95
Seller information: Silicon Droid
Country: Spain
Company: Silicon Droid
Qty:     - OR -   Wish List
This plugin will make your Android build pickup all HID joysticks, both wireless and wired.

Instructions are simple:

[1] Import the plugin .STE into your game project.
[2] Drag the plugin into the GameEditor/Plugins tab to reference it in your game.
[3] In your main game initialisation call:
Android_Joy.RegisterListenerAI ( "MyAI" )
Android_Joy.Enable ( true )

[4] Joystick events are now forwarded to the regular ShiVa user level input handlers:
MayAI.onJoypadButtonDown -> Buttons ( and DPad )
MayAI.onJoypadButtonUp -> Buttons ( and DPad )
MayAI.onJoypadButtonPressureChange -> Usually shoulder squeeze triggers
MayAI.onJoypadStickMove -> Analog Sticks

[5] The user handlers nJoypad parameter will be set to a different number for each connected joypad, so you can have multiplayer on same device. But bear in mind that these numbers may not start at 0 and may not even be sequential, they are the raw DeviceID numbers at android level. As such it is your responsibility to manage some table for them.

That's it.

Write a review

Your Name:

Your Review: Note: HTML is not translated!

Rating: Bad           Good

Enter the code in the box below:

ShiVa Store © 2019 - Powered By OpenCart