mono/MonoGame — pull request #1157 by danzel (2013-01-06 06:33:21+00:00)
Title: Add Ouya controller support

Uses all of the standard android InputDevice things, so it should work with other GamePad devices too.

GamePadCapabilities detection is currently done based on device name which is really dumb as android doesn't seem to have a way to ask if a device has a certain button.
I've added ouya and wired xbox 360 controllers to the list. (See CapabilitiesOfDevice)

My concerns with this change:
- This implementation of GamePad is in an ouya folder, but it applies to android in general (so long as it is a new enough android device. InputDevice requires sdk 9+ I think).
Maybe we could look at replacing the existing Android GamePad implementation?
- GetCapabilities is dumb, as above. Maybe we should have a default implementation for unknown devices?

Otherwise I'm quite happy with it :-)
Please post any feedback, will make any changes/tidyups required.