mirror of
https://github.com/libsdl-org/SDL.git
synced 2026-01-06 21:37:47 +00:00
fix wrong index in HandleStatePacket with flydigi controller (#13819)
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user