Is there anyway to know if a controller was connected or disconnected durring runtime? or am i missing something? cant find any clues in the documentation or sample projects in the ODK 0.0.4.
Pairing is currently only supported at startup or in the bluetooth settings menu. Team OUYA stated that they intend to allow controllers to pair at any time, but this functionality is not yet implemented. Since its not implemented yet there's not likely to be an api for it, but I hope it will be included when they finish implementing pairing.
I dot not really need to peer the devices, i just need to know from the API if and when a new controller was connected or disconnected. It can be critical to a multiplayer game where multiple controller are used. the OUYA assign a new deviceId for ever time a controller that is connected so there is no way to reconnect a controller to a specific player if for instance the battery dies while playing.
Comments
http://developer.android.com/reference/android/hardware/input/InputManager.html#registerInputDeviceListener(android.hardware.input.InputManager.InputDeviceListener, android.os.Handler)
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].