foxygit / doom Log in
commit 72d926022a4903df4cb2bb4822fd308cae797af1
Author:     Mike Swanson <mikeonthecomputer@gmail.com>
AuthorDate: Wed Dec 31 06:02:40 2014 -0800
Commit:     Mike Swanson <mikeonthecomputer@gmail.com>
CommitDate: Wed Mar 25 22:19:25 2015 -0700

    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.
---
 src/setup/joystick.c | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/src/setup/joystick.c b/src/setup/joystick.c
index dc94b2f0..2a07d181 100644
--- a/src/setup/joystick.c
+++ b/src/setup/joystick.c
@@ -331,6 +331,13 @@ static const known_joystick_t known_joysticks[] =
         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,