From 5fe9803743b15b358a74a9e78286e9c89b3cb77a Mon Sep 17 00:00:00 2001 From: Jan Holthuis Date: Fri, 14 Aug 2015 19:06:40 +0200 Subject: [PATCH] linux-dist: Improve XBox360 controller support for legacy joystick api --- core/linux-dist/main.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/core/linux-dist/main.cpp b/core/linux-dist/main.cpp index 502ad59f4..7454caecb 100755 --- a/core/linux-dist/main.cpp +++ b/core/linux-dist/main.cpp @@ -316,7 +316,9 @@ static int joystick_fd = -1; // Joystick file descriptor printf("joystick: Found '%s' with %d axis and %d buttons at '%s'.\n", name, axis_count, button_count, device); - if (strcmp(name, "Microsoft X-Box 360 pad") == 0) + if (strcmp(name, "Microsoft X-Box 360 pad") == 0 || + strcmp(name, "Xbox Gamepad (userspace driver)") == 0 || + strcmp(name, "Xbox 360 Wireless Receiver (XBOX)") == 0) { joystick_map_btn = joystick_map_btn_xbox360; joystick_map_axis = joystick_map_axis_xbox360;