mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-05-30 16:37:39 +00:00
Fixed the hat_map to avoid segmentation fault
This commit is contained in:
parent
1bf1c866fe
commit
57e78f4cf5
1 changed files with 1 additions and 0 deletions
|
@ -1396,6 +1396,7 @@ static void RAWINPUT_HandleStatePacket(SDL_Joystick *joystick, Uint8 *data, int
|
|||
(1 << SDL_GAMEPAD_BUTTON_DPAD_DOWN) | (1 << SDL_GAMEPAD_BUTTON_DPAD_LEFT),
|
||||
(1 << SDL_GAMEPAD_BUTTON_DPAD_LEFT),
|
||||
(1 << SDL_GAMEPAD_BUTTON_DPAD_UP) | (1 << SDL_GAMEPAD_BUTTON_DPAD_LEFT),
|
||||
0,
|
||||
};
|
||||
Uint64 match_state = ctx->match_state;
|
||||
/* Update match_state with button bit, then fall through */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue