From 3ec19b2a897fa09ddb58233af90db90bdde0c3bc Mon Sep 17 00:00:00 2001 From: Sam Lantinga Date: Wed, 7 Aug 2024 15:05:08 -0700 Subject: [PATCH] Removed duplicate call to SDL_AssertJoysticksLocked() --- src/joystick/SDL_joystick.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/joystick/SDL_joystick.c b/src/joystick/SDL_joystick.c index 419ef5a7fd..5f0dd4a3d6 100644 --- a/src/joystick/SDL_joystick.c +++ b/src/joystick/SDL_joystick.c @@ -2321,8 +2321,6 @@ int SDL_SendJoystickButton(Uint64 timestamp, SDL_Joystick *joystick, Uint8 butto return 0; } - SDL_AssertJoysticksLocked(); - /* Make sure we're not getting garbage or duplicate events */ if (button >= joystick->nbuttons) { return 0;