AIR Native Extension for the OUYA Controller
ActionScript Java
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.


AIROUYAController is an unofficial Native Extension for Adobe AIR designed to expose the functionalities of the OUYA Controller to ActionScript 3.
This project is most likely to be deprecated by the native AIR support for OUYA controllers coming in AIR3.7. It will be updated in case any functionality is missing from the built in solution.

Folder Structure

There are 6 folders within the project:
1) OUYAControllerANEJava
The Native Java code.
2) OUYAControllerANELib
The ActionScript 3 Interface code. Generates a SWC.
3) OUYAControllerANESimpleTest
A simple application that implements the ANE. This merely traces the button presses and axis to the console
4) OUYAControllerANETest
A more comprehensive demo project with UI.
5) OUYAControllerANEDefaultLib
Creates the "default" SWC. This mimics the functionality of the ANE for unsupported platforms.
6) OUYAControllerWindowsTest
Demonstrates that any AIR application can have the ANE attached, now that the default platform is included.

Current Progress

All buttons work (except the OUYA System/Home Button - this is an outside case)
Both Sticks work (some noise, in that 0.0 on the axis is sent often! - FIXED!)
Both Triggers work (work as buttons AND analogue triggers)
Touchpad works.


  • Modify external class files that are included (to fix collisions with IAP ANE) [DONE]
  • Make SWC Library a Singleton [DONE]
  • Updated to ODK 1.0.3 [DONE]
  • Support BUTTON_MENU [DONE]
  • Fix calls to ODK for playerId [DONE]
  • Build base ANE [DONE]
  • Include OuyaController library [DONE]
  • Extract .class files from OuyaController and embed into ANE (at JAR level) [DONE - must be done on ever new JAR!]
  • Send Events for Buttons [DONE]
  • Send Events for Thumbsticks [DONE]
  • Send Events for Triggers [DONE]
  • Create Repo on github [DONE]
  • Multiple Controller Support [DONE]
  • Touchpad Support [DONE - limitation: Touchpad acts as mouse, so the OuyaController has no "Player" value for whom used the trackpad]
  • Fix Deadzone issue with Thumbsticks [DONE]
  • Add OUYA Button [DONE - although we cannot intercept this! The button support is in for when we may be able to find a workaround]
  • Fix Thumbstick 0,0 Axis bug [DONE]
  • Add more comprehensive and UI driven demonstration project [DONE - Thanks to Clayton!]
  • Add isControllerSupported method [DONE - We use "isControllerSupported" instead of "isSupported" because if you use multiple ANEs and if these ANEs share any method names, whichever was the last loaded will use the name.]
  • Add "default" platform [DONE - allows us to use the ANE in the same application for multiple platforms]