It looks like you're new here. If you want to get involved, click one of these buttons!
@Override public boolean onKeyDown(final int keyCode, KeyEvent event){ //Get the player # int player = OuyaController.getPlayerNumByDeviceId(event.getDeviceId()); boolean handled = false; //Handle the input switch(keyCode){ case OuyaController.BUTTON_O: //You now have the key pressed and the player # that pressed it //doSomethingWithKey(); handled = true; break; } return handled || super.onKeyDown(keyCode, event); }
Answers