shithub: choc

Download patch

ref: 72d926022a4903df4cb2bb4822fd308cae797af1
parent: ad027ef6dbfeebabe0e6701eec968e9d474e497f
author: Mike Swanson <mikeonthecomputer@gmail.com>
date: Wed Dec 31 01:02:40 EST 2014

setup: add support for the Xbox One controller on Linux

Effectively it's a slightly re-arranged Xbox 360 controller, no major
changes, so we can just use the same config as that one.

--- a/src/setup/joystick.c
+++ b/src/setup/joystick.c
@@ -331,6 +331,13 @@
         xbox360_controller_linux,
     },
 
+    // Xbox One controller as it appears on Linux.
+    {
+        "Microsoft X-Box One pad",
+        6, 11, 1,
+        xbox360_controller_linux,
+    },
+
     {
         "Logitech Dual Action",
         4, 12, 1,