mirror of
https://github.com/libsdl-org/SDL.git
synced 2026-06-06 06:34:35 +00:00
fix wrong index in HandleStatePacket with flydigi controller (#13819)
This commit is contained in:
parent
e9c2e9bfc3
commit
6176235a90
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue