Skip to content

Conversation

@Susko3
Copy link
Member

@Susko3 Susko3 commented Jan 3, 2026

Could crash if the ID wasn't in the dictionary. The old code also didn't properly close everything (it would close either the joystick or the gamepad, but not both).

This PR adds removeJoystick() (matching addJoystick()) and uses it when a joystick or gamepad is removed, for both SDL2 and SDL3.

Could crash if the ID wasn't in the dictionary.
The old code also didn't properly close everything
(it would close either the jostick or the gamepad, but not both).
@ppy-sentryintegration
Copy link

Sentry issue: OSU-1028

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant