Ouya test build controller input help

I need some help with the controller inputs. That I am having some trouble understand how android work in this area. The onKeyDown and onKeyUp function are not working. After looking around I need to find where and how the view or content to listen to get the controls input working on MainActivity.

Here the link to the test build. https://bitbucket.org/Lightnet/ouyajme3test

This is eclipse build. This project just output into console ui.

Any idea how to get the onKeyDown and onKeyUp function working on AndroidHarness class? or have some class to make it work?

Maybe you should try to use a Joystick instead.
look at TestJoystick.java

It doesn’t work for some reason that “Joystick[] joysticks = inputManager.getJoysticks();” is null. Work fine on desktop but not on ouya android.

Joysticks on Android uses sensors, so it won’t work in the Ouya.

Ouya probably implements the InputDevice API in Android. @iwgeric might have more knowledge about this.

I see. OuyaController class that I been using seem to be working after learning a bit. It seem have static class. To able to get the control inputs. By updating the object player control id. I tired the xbox controller plug in ouya console. That didn’t detect it. But it works normal going into menus and stuff.