Re: [AD] Ouya controller support |
[ Thread Index | Date Index | More lists.liballeg.org/allegro-developers Archives ]
I got my Ouya today, and I’ve checked out your new branch. I’m going to try the joystick out as soon as I get my game back in building/working order.TrentFrom: Jonathan LilliemarckSent: Friday, July 12, 2013 5:01 PMSubject: Re: [AD] Ouya controller supportThe Linux Joystick driver pretty much works as it is! It's just a few defines in linux/input.h that are missing. At first I got error EACCES when the driver opened the device but adding <uses-permission android:name="tv.ouya.DIRECT_INPUT_ACCESS"/> to the manifest solved it!The adb shell has a tool getevent that can be used to examine the device in various ways:shell@xxxxxxxxxx:/ $ getevent -lp /dev/input/event1add device 1: /dev/input/event1name: "OUYA Game Controller"events:KEY (0001): BTN_LEFT BTN_RIGHT BTN_MIDDLE BTN_ABTN_B BTN_C BTN_X BTN_YBTN_Z BTN_TL BTN_TR BTN_TL2BTN_TR2 BTN_SELECT BTN_START BTN_MODEBTN_THUMBL BTN_THUMBR 013fREL (0002): REL_X REL_Y REL_WHEELABS (0003): ABS_X : value 32768, min 0, max 65535, fuzz 255, flat 4095, resolution 0ABS_Y : value 32768, min 0, max 65535, fuzz 255, flat 4095, resolution 0ABS_Z : value 0, min 0, max 65535, fuzz 255, flat 4095, resolution 0ABS_RX : value 33742, min 0, max 65535, fuzz 255, flat 4095, resolution 0ABS_RY : value 32653, min 0, max 65535, fuzz 255, flat 4095, resolution 0ABS_RZ : value 0, min 0, max 65535, fuzz 255, flat 4095, resolution 0ABS_MISC : value 221, min 0, max 255, fuzz 0, flat 0, resolution 00029 : value 0, min 0, max 255, fuzz 0, flat 0, resolution 0002a : value 0, min 0, max 255, fuzz 0, flat 0, resolution 0002b : value 0, min 0, max 255, fuzz 0, flat 0, resolution 0MSC (0004): MSC_SCANinput props:<none>2013/7/12 Beoran <beoran@xxxxxxxxxx>
The /dev/input/event/* API should work, but perhaps it emits key and joystick events in a range that the new Linux joystick driver is currently ignoring. We're using some heuristics to determine if the input device is a joystick or not but they are not 100% certain. If you could run a tool like evtest, that would be perfect.
------------------------------------------------------------------------------
See everything from the browser to the database with AppDynamics
Get end-to-end visibility with application monitoring from AppDynamics
Isolate bottlenecks and diagnose root cause in seconds.
Start your free trial of AppDynamics Pro today!
http://pubads.g.doubleclick.net/gampad/clk?id=48808831&iu=/4140/ostg.clktrk
--
https://lists.sourceforge.net/lists/listinfo/alleg-developers
------------------------------------------------------------------------------
See everything from the browser to the database with AppDynamics
Get end-to-end visibility with application monitoring from AppDynamics
Isolate bottlenecks and diagnose root cause in seconds.
Start your free trial of AppDynamics Pro today!
http://pubads.g.doubleclick.net/gampad/clk?id=48808831&iu=/4140/ostg.clktrk
--
https://lists.sourceforge.net/lists/listinfo/alleg-developers
Mail converted by MHonArc 2.6.19+ | http://listengine.tuxfamily.org/ |