Using Android plugin to access android controller information.

I know that it’s possible to get information about buttons being pressed on an Android bluetooth controller, but I am unsure how. From what I can tell they all return things like KEYCODE_DPAD_UP and similar keycodes like Unity does. It would be nice to get this data straight from android since Unity returns different values for different controllers and it sometimes doesn’t give me any input for certain parts of the controller like the right trigger. Does anyone know how to access the gamepad state through an android plugin?

I’ve found the information I needed!

This link gave me the guidance I needed to make the plugin for Unity. Either I missed this, when I checked back in January, or the Documentation wasn’t updated to this at the time. Either way, everything is all set.