mirror of
https://github.com/Ryujinx/SDL.git
synced 2025-02-25 09:26:52 +00:00
The hat index passed to the application should be zero-based with no holes
This commit is contained in:
parent
a1a2f9b9f8
commit
3fbaa5da05
|
@ -773,9 +773,8 @@ HandleHat(SDL_Joystick * stick, Uint8 hat, int axis, int value)
|
||||||
}
|
}
|
||||||
if (value != the_hat->axis[axis]) {
|
if (value != the_hat->axis[axis]) {
|
||||||
the_hat->axis[axis] = value;
|
the_hat->axis[axis] = value;
|
||||||
SDL_PrivateJoystickHat(stick, hat,
|
SDL_PrivateJoystickHat(stick, stick->hwdata->hats_indices[hat],
|
||||||
position_map[the_hat->
|
position_map[the_hat->axis[1]][the_hat->axis[0]]);
|
||||||
axis[1]][the_hat->axis[0]]);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue