Your apps will run on OUYA just fine, normally.
It has no sensors. This includes microphone (so no voice recognition), gyroscope, compass, accelerometers, orientation, light. It has nada. It also has no telephony features (but you should be used to that for most tablets)
You only have to support 2 resolutions in landscape orientation, 720p and 1080p. And you get fullscreen access, no bloody menu/nav/action bars.
The controller is actually really easy to use, it just sends keyboard events!
KeyCodes.KEYCODE_DPAD_CENTER KeyCodes.KEYCODE_DPAD_DOWN KeyCodes.KEYCODE_DPAD_LEFT KeyCodes.KEYCODE_DPAD_RIGHT
82=OUYA button
96=O
99=U
100=Y
97=A
102=L1
103=R1
104=L2
105=R2
106=L3
107=R3
The touchpad only sends mouse down/up events. You can't use gestures with it, since dragging just moves the cursor. No long-click either
To get it to show in the proper part of it's menu, you need a 732*412 PNG named ouya_icon.png (set to read-only!) in YOURPROJECT\Objects\res\drawable-xhdpi and to add this code to the manifest editor
And it's easy to detect if the device is an OUYA
It has no sensors. This includes microphone (so no voice recognition), gyroscope, compass, accelerometers, orientation, light. It has nada. It also has no telephony features (but you should be used to that for most tablets)
You only have to support 2 resolutions in landscape orientation, 720p and 1080p. And you get fullscreen access, no bloody menu/nav/action bars.
The controller is actually really easy to use, it just sends keyboard events!
KeyCodes.KEYCODE_DPAD_CENTER KeyCodes.KEYCODE_DPAD_DOWN KeyCodes.KEYCODE_DPAD_LEFT KeyCodes.KEYCODE_DPAD_RIGHT
82=OUYA button
96=O
99=U
100=Y
97=A
102=L1
103=R1
104=L2
105=R2
106=L3
107=R3
The touchpad only sends mouse down/up events. You can't use gestures with it, since dragging just moves the cursor. No long-click either
To get it to show in the proper part of it's menu, you need a 732*412 PNG named ouya_icon.png (set to read-only!) in YOURPROJECT\Objects\res\drawable-xhdpi and to add this code to the manifest editor
B4X:
AddApplicationText(<activity android:name=".NAMEOFYOURACTIVITY" android:label="NAME OF YOUR APP">
<intent-filter>
<action android:name="android.intent.action.MAIN"/>
<category android:name="android.intent.category.LAUNCHER"/>
<category android:name="tv.ouya.intent.category.GAME"/>
</intent-filter>
</activity>)
And it's easy to detect if the device is an OUYA
B4X:
IsOuya=Model(0).EqualsIgnoreCase("OUYA")
Sub Model(ID As Int) As String
Dim P As Phone
Select Case ID
Case 0: Return P.Manufacturer
Case 1: Return P.Model
Case 2: Return P.Product
End Select
end sub