FYI, I'm on Unity and getting started with modifying the provided plugin for real input use of a single controller, but running into problems and now have some questions in general about the controllers in the ODK.
1) Are KeyDown events supposed to be firing repeatedly when a button is held down, or just once in a press/release cycle?
2) Is it unsupported to hold multiple keys down at the same time? Holding two keys down results in repeated KeyDown events for only one of the keys. Releasing that key does not result in repeated KeyDown events for the other key.
3) Is the mSeq private member in KeyEvent an Android standard, or is this an OUYA-specific extension?
4) Can you provide a documentation reference for everyone which states the mKeyCode for each button on the controller? It would be very handy. :)
5) It looks like GenericMotionEvents contain axis data for ALL axes, is that so? And if so, are GenericMotionEvents fired if all axes are at zero?
6) Do controller events work on a polling cycle, and if so what is the polling rate?
Thanks!
Comments
2) Multiple buttons should be supported.
3) That's all AndroidSDK. I sent the whole structure to Unity for debugging to debug the interface on multiple controllers.
4) Every controller is different. But there's a doc on that.
https://devs.ouya.tv/developers/docs/controllers
5) I think the axis event fires on change, so if it changes to zero it fires. Although it's never exactly zero. It's zero by default as well.
6) There's no polling for controller events yet. They fire at will which isn't necessarily good performance.
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].
I am sure I am in the correct switch case as I display some debug data to the screen from that case statement.
I am on OSX, Unity 4.0... anyone else seen this?
http://3sprockets.com | http://about.me/seonrozenblum
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].
http://3sprockets.com | http://about.me/seonrozenblum