Scripting Input For A GPD XD
Hello all!
I recently purchased a "GPD XD" and am trying to figure out how to access the Input class for it. It's running Android so I figured it would be pretty simple but since it's a custom controller built into the unit itself I am not sure what to do.
I guess what I need to know are the button and axis codes for the system, but when I seacrh for them I don't find anything for this unit.
Thanks for the help!
Answer by C10110 · Sep 20, 2015 at 02:57 PM
Hey Guys so in the end I bought an asset to deal with my input as dealing with computers and gamepads for them, and mobile just becomes a giant mess for a novice like me who doesn't code very well yet.
But if you want some literature and examples on how to do this yourself, I did find a few things!
First go to this Android dev page that talks about handling controller input (NOT UNITY) https://developer.android.com/training/game-controllers/controller-input.html
But it does have the basic/standard gamepad codes for Android gamepads.
Also be sure to check out Nvidia's demo for scripting for the Shield Portable here: https://developer.nvidia.com/starting-development-shield-unity
That gives you a rough idea of where to go with it, be even they say they use the asset "In Control" to get input from Android Gamepads. (I use auto Gamepad Mapper fyi)
Anyway I hope this was helpful to someone else.
Your answer
