Removed duplicate call to SDL_AssertJoysticksLocked()
This commit is contained in:
parent
9493e6974f
commit
3ec19b2a89
1 changed files with 0 additions and 2 deletions
|
@ -2321,8 +2321,6 @@ int SDL_SendJoystickButton(Uint64 timestamp, SDL_Joystick *joystick, Uint8 butto
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
SDL_AssertJoysticksLocked();
|
|
||||||
|
|
||||||
/* Make sure we're not getting garbage or duplicate events */
|
/* Make sure we're not getting garbage or duplicate events */
|
||||||
if (button >= joystick->nbuttons) {
|
if (button >= joystick->nbuttons) {
|
||||||
return 0;
|
return 0;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue