mirror of
https://github.com/libretro/RetroArch
synced 2025-04-01 04:20:27 +00:00
xbox 360 wirelss receiver fix
A xbox 360 controller wireless receiver (http://support.xbox.com/en-US/xbox-on-other-devices/connections/xbox-360-wireless-gaming-receiver-windows) reports itself as "Xbox 360 Wireless Receiver" (typically) or "Microsoft Corp. Xbox 360 Wireless Adapter" (possibly) so it's detection should not contingent on finding "Microsoft" in the name string. Its d-pad reports different button codes than a wired 360 controller so we need a new configuration for this pad.
This commit is contained in:
parent
f76a0c4953
commit
2f63e0b7ee
@ -449,6 +449,8 @@ static void handle_hotplug(void *data, unsigned *port, unsigned id,
|
||||
strlcpy(name_buf, "MUCH iReadyGo i5", sizeof(name_buf));
|
||||
else if (strstr(device_name, "Wikipad"))
|
||||
strlcpy(name_buf, "Wikipad", sizeof(name_buf));
|
||||
else if (strstr(device_name, "360 Wireless"))
|
||||
strlcpy(name_buf, "XBox 360 Wireless", sizeof(name_buf));
|
||||
else if (strstr(device_name, "Microsoft"))
|
||||
{
|
||||
if (strstr(device_name, "Dual Strike"))
|
||||
@ -456,7 +458,6 @@ static void handle_hotplug(void *data, unsigned *port, unsigned id,
|
||||
else if (strstr(device_name, "SideWinder"))
|
||||
strlcpy(name_buf, "SideWinder Classic", sizeof(name_buf));
|
||||
else if (strstr(device_name, "X-Box 360")
|
||||
|| strstr(device_name, "Xbox 360 Wireless Receiver")
|
||||
|| strstr(device_name, "X-Box"))
|
||||
strlcpy(name_buf, "XBox 360", sizeof(name_buf));
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user