My device type always seems to be "Android" and never OUYA. Is there a reliable way or compiler directive that is built into the OUYA SDK to detect if it's an OUYA?
Quintet: a cooperative scifi game where players control the same ship through 5 roles - Captain, Helm, Tactical, Engineering & Science.
The OUYA SDK is just a Java library, so there are no compiler directives it can inject. This has been asked before, and the only solution was to try calling an OUYA function and catching the exception if it didn't work because it was running on a device without the OUYA framework installed.
Comments
OUYA Inc | Android Developer
Skype: tgraupmann_prey
http://github.com/ouya/docs
http://github.com/ouya/ouya-sdk-examples
Check out the latest docs for your game engine: [setup] [adobe air] [android] [clickteam fusion] [construct 2] [corona] [libGDX] [game maker] [html5] [marmalade] [monogame] [unity] [unreal]
Use caution when setting [persistent wireless mode].
OUYA Inc | Android Developer
Skype: tgraupmann_prey
http://github.com/ouya/docs
http://github.com/ouya/ouya-sdk-examples
Check out the latest docs for your game engine: [setup] [adobe air] [android] [clickteam fusion] [construct 2] [corona] [libGDX] [game maker] [html5] [marmalade] [monogame] [unity] [unreal]
Use caution when setting [persistent wireless mode].
public static bool IsOUYA()
{
if (SystemInfo.deviceModel.ToUpper().Contains("OUYA")) return true;
return false;
}
OUYA Inc | Android Developer
Skype: tgraupmann_prey
http://github.com/ouya/docs
http://github.com/ouya/ouya-sdk-examples
Check out the latest docs for your game engine: [setup] [adobe air] [android] [clickteam fusion] [construct 2] [corona] [libGDX] [game maker] [html5] [marmalade] [monogame] [unity] [unreal]
Use caution when setting [persistent wireless mode].