Fixed Wireless controller support

This commit is contained in:
Ingo Ruhnke 2008-05-01 12:21:25 +02:00
parent dc583b901e
commit 2e05c11edc

View file

@ -129,7 +129,7 @@ Xbox360WirelessController::read(XboxGenericMsg& msg)
else if (data[0] == 0x00 && data[1] == 0x01 && data[2] == 0x00 && data[3] == 0xf0 && data[4] == 0x00 && data[5] == 0x13)
{
msg.type = GAMEPAD_XBOX360_WIRELESS;
msg.xbox360 = *reinterpret_cast<Xbox360Msg*>(&data[5]);
msg.xbox360 = *reinterpret_cast<Xbox360Msg*>(&data[4]);
return true;
}
else if (data[0] == 0x00 && data[1] == 0x00 && data[2] == 0x00 && data[3] == 0x13)