I pushed my changes to
https://github.com/lilliemarck/allegro 5.1-ouya-ljoy. I think this may be good for official Allegro.
I added compatibility defines for BTN_CNT and ABS_CNT instead of using BTN_CNT+1 so noone reverts it later and breaks the android build.
The tv.ouya.DIRECT_INPUT_ACCESS use permission is placed in the library's manifest file and the example uses manifestmerger.enabled=true to include it.
I use Bundle.MODEL and check for "OUYA Console" to figure out which joystick driver to use.
/ Jonathan