There've been a few posts here and there about people developing for the OUYA. As-is, NGUI's built-in UIButtonKeys will not work on the console itself because the OUYA SDK's input doesn't go through Unity's input. So, with that in mind, I re-wrote the UIButtonKeys class to work on the dev console.
Get it here! OuyaUIButtonKeys.cs
Note: You will also need to change UICamera.cs
. (For an explanation, see this thread
) Under UICamera.Awake(), it checks the current platform, and will disable some input options, which will mess up button selection. You can just comment out the Android check, like so, and it will work:
if (//Application.platform == RuntimePlatform.Android ||
Application.platform == RuntimePlatform.IPhonePlayer)
useMouse = false;
useTouch = true;
useKeyboard = false;
useController = false;
It could potentially be cleaner to do all of the input changes in UICamera.cs itself; however, keeping the input handling entirely in a separate script will make it a lot easier to merge in new versions.