Skip to content

Commit

Permalink
Fixed the hat_map to avoid segmentation fault
Browse files Browse the repository at this point in the history
(cherry picked from commit 57e78f4)
  • Loading branch information
happyharryh authored and slouken committed Jan 12, 2023
1 parent fa934dd commit 2cb4223
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/joystick/windows/SDL_rawinputjoystick.c
Expand Up @@ -1400,6 +1400,7 @@ static void RAWINPUT_HandleStatePacket(SDL_Joystick *joystick, Uint8 *data, int
(1 << SDL_CONTROLLER_BUTTON_DPAD_DOWN) | (1 << SDL_CONTROLLER_BUTTON_DPAD_LEFT),
(1 << SDL_CONTROLLER_BUTTON_DPAD_LEFT),
(1 << SDL_CONTROLLER_BUTTON_DPAD_UP) | (1 << SDL_CONTROLLER_BUTTON_DPAD_LEFT),
0,
};
Uint64 match_state = ctx->match_state;
/* Update match_state with button bit, then fall through */
Expand Down

0 comments on commit 2cb4223

Please sign in to comment.