tv.ouya.sdk.IOuyaActivity was what my logcat revealed too. I did as Tim advised and clicked more of the Ouya buttons and it solved my problem. My order was (I'm fairly certain):
Synv Bundle ID
Compile
Compile NDK
Compile Plugin
Compile Java
I don't know that it has to be done that way but I clicked 'em all just to be double dang sure I was getting everything. My project didn't crash after that.
I wonder if its my Compile Plugin, the first console window it opens just sits there until I close it myself. Then the rest of them open and close on their own and I receive an error.
C:\Users\Public\Documents\Unity Projects\Dogma_Proto_Ouya_1.0.6_Updated_7_18\Assets\Plugins\Android\src\OuyaUnityPlugin.java:33: error: cannot find symbol
If you have to manually close the compile window it didn't finish. Also not closing right away is a sign the package name isn't synced or there's a compile error.
Ok, so I opened up OuyaUnityPlugin.js inside of Unity which by default opened up with notepad and decided I'll just rewrite it. So I went to my documents and opened up the same file with notepad again and copy and pasted the version from my documents into the version that was already imported into unity. Such a headache, a full day of it.
Real quick question though, are the Joy Axis 1-10 supposed to be returning values as i move the analog sticks around? All the Joy Buttons do receive input, but not the Joy Axis inside of the ShowUnityInput scene
It should be setup already. Which platform? The mappings depend on the platform and the controller. The same controller can have different mappings on each platform.
I'm working with the Ouya and Ouya controller. I've only been testing my scenes by exporting them to my Ouya. I see in the code where it writes out Joy Axis1 - 10 in the Debug Output, but when I move the analog sticks around the numbers don't change inside of the scene. If I press them down as a button then the analog sticks descend into the controller but that's about it.
Gotcha, I'm trying something different. If I do Vector3(Input.GetAxis(("Horizontal"),0,("Vertical")), the controller picks up on the left joystick. But how would I specify the player I want to receive input from.
And also get input from the right joystick?
I've been having joystick input issues since the beginning and have been working around it up till now.
Awesome, what you gave got rid of my errors, although I could swear I had tried that before but I must have typed it out wrong. Anyways, although I'm not having any errors, my cube is not moving when I move the left stick left or right.
I've got what you wrote, and then right below it I've got this
if (controller.isGrounded)
{
moveDirection = new Vector3(input.x, 0,0); (Do I even need this line?)
//get the move direction from the controller axis;
moveDirection = transform.right * input.x; (am i suppoesd to reference it like this?)
moveDirection = new Vector3(Input.GetAxis("Horizontal"), 0,0);
//get the move direction from the controller axis;
moveDirection = transform.right;
//Set the speed
moveDirection *= speed;
}
It worked fine so because of that I know it's grounded,
and I have
//Move the character;
controller.Move(moveDirection * Time.deltaTime);
written in the Update function so the only thing I can think of is that I'm doing my Vector2 wrong or I'm just the worst at setting up the controller inputs.
So, it turns out I haven't been dropping the project settings from the ouya-plugin into my own project. After doing that, all my analog sticks work >.<.
I was having this issue with a game I am porting from Android to Ouya, and the problem was I needed to build the NDK, Java, and Plugin ffrom the Ouya Panel before it started to work. Now I just need to work on mapping the controllers!
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].
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].
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].
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].
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].
Vector2 LS = new Vector2(OuyaExampleCommon.GetAxis(OuyaExampleCommon.GetAxis("LX", player),OuyaExampleCommon.GetAxis("LY", player)));
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].
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].