Emulate OUYA Controller - How to set controller index over Bluetooth?

nsrosenqvist

New member
Aug 19, 2017
1
0
0
Hi! I'm working on a project to extend the life of the OUYA gamepads. The goal is to create a daemon that automatically emulates connected OUYA controllers as Xbox 360 controllers so that they can continue to be used for gaming on Linux. Personally I'd like to use this for a cheap Steam based gaming console. I created a prototype earlier this year that you can find here: https://github.com/nsrosenqvist/ouya2xbox

The prototype is just a bash script that reads all connected OUYA Controllers and emulates them with xboxdrv. I've used it for some casual gaming with friends and it works really well. My next step is to create a daemon (probably in python) that automatically registers them as Xbox controllers without any user interaction.

One minor annoyance I'm trying to fix is that all connected controllers always show as player one (the lights on the gamepad). So I've been trying to figure out how to communicate with the controller over Bluetooth to set the controller index appropriately. But when I run bluetoothctl list-attributes it returns nothing. My assumption would be that the controller index could be set with the set-attribute command but I've never worked with bluetooth devices before and I cannot find any documentation regarding the OUYA controller's bluetooth online. Does anyone here have any tips on how I can do this? Any common default attributes or documentation available anywhere?

Thanks!
 
Our Apps
Get our official app!
The best way to access XDA on your phone
Nav Gestures
Add swipe gestures to any Android
One Handed Mode
Eases uses one hand with your phone