linux-dist: Improve XBox360 controller support for legacy joystick api
This commit is contained in:
parent
14f77c92d9
commit
5fe9803743
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue