So, I found out that if you plug an wired X360 controller will work just like a regular Ouya controller. Is there a way to detect if the controller is an X360 one? So far I only got InputDevice.getName(), which gives the descriptive name of the controller, and I'm not sure if it's reliable.
Comments
Check out Pig Eat Ball on Facebook!
... But I also agree with Dreamwriter, that it'd be nice to be able to find out which controller they've got.
If you let OuyaController do the work, it takes care of mapping the XBOX 360 controller to the OUYA buttons. Personally, I like letting the OUYA staff do this work. :)
From what i read, the Ouya controller was heavily based off of the 360 controller. Even sending a long of the same codes internally, so i am not so surprised that the wireless adapter was specifically supported.
You will find the input devices drivers already present on the OUYA.
Last one is ours -> Vendor_2836_Product_0001.kl
extract:
#
# OUYA Game Controller
#
key 0x130 BUTTON_A
key 0x133 BUTTON_B
key 0x131 BUTTON_X
key 0x132 BUTTON_Y
# Button "LB" maps to BUTTON_L1.
key 0x134 BUTTON_L1
# Button "RB" maps to BUTTON_R1.
key 0x135 BUTTON_R1
We already have support right out of the box for many controllers as we reported some weeks ago:
- XBox 360 USB Controller;
- XBox 360 USB Wireless Controller;
- Sony Playstation(R)3 Controller;
- Wii Remote (WiiMote), Nunchuk and Classic Controller;
- OnLive Wireless Controller;
- Logitech Dual Action Controller;
- Logitech Gamepad F310;
- Logitech Rumble Gamepad F51;
- Logitech Wireless Gamepad F710;
- Thrustmaster T Mini Wireless;
- Saitek Gamepad.
And keyboards too:
- Logitech Revue Wireless keyboard;
- Motorola Bluetooth Wireless Keyboard;
- Apple Wireless Keyboard.
Last but not least, full support for the Logitech G25 Racing Wheel - Steering Wheel, Accelerator / Brake / Toggles under wheel /Gear shift, everything works.
The current OUYA SDK limits you; one can get full and proper support of those controllers if you ditch/extend it. Each device sends a string id when requested indeed, and that can be trusted; an OUYA game controller will report "OUYA Game Controller" when requested, and so on. Simple matter to know what controller you're talking to, and match the key layout accordingly - even if as @goodhustle said, it would be better to have a unified solution in the SDK - but the current implementation lacks. Alas, at least we have freedom of choice.
www.yummycircus.com
Website
Website
I wonder how many people have the xbox360 usb dongle? I'm going to have to go buy one now as I bought a controller without one >.<
Website
PS3 controller support is really beginning to excite me though :-) I think i will have start experimenting with this too!
-=Hicsy=-
PM me Facebook
http://www.pocket-lint.com/news/119164-ouya-works-xbox-360-ps3-controllers-wirelessly
We showcased Yummy Circus @GDC on OUYA on PS3 controllers (and OUYA, Moga, and Nyko controllers as well).
http://phandroid.com/2013/03/28/yummy-circus-ouya-video/
Auto mapping included in Yummy Circus - you can mix any controllers :)
www.yummycircus.com
www.yummycircus.com