fix wrong index in HandleStatePacket with flydigi controller (#13819)

This commit is contained in:
wankey 2025-08-28 19:08:54 +08:00 committed by GitHub
parent e9c2e9bfc3
commit 6176235a90
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -323,7 +323,7 @@ static void HIDAPI_DriverFlydigi_HandleStatePacket(SDL_Joystick *joystick, SDL_D
{
Sint16 axis;
Uint64 timestamp = SDL_GetTicksNS();
if (data[0] != 0x04 && data[0] != 0xFE) {
if (data[0] != 0x04 || data[1] != 0xFE) {
// We don't know how to handle this report
return;
}