| Summary: | Emscripten: connecting and disconnecting real-joysticks can close virtual joysticks | ||
|---|---|---|---|
| Product: | SDL | Reporter: | David Ludwig <dll> |
| Component: | joystick | Assignee: | Sam Lantinga <slouken> |
| Status: | NEW --- | QA Contact: | Sam Lantinga <slouken> |
| Severity: | normal | ||
| Priority: | P2 | CC: | dll |
| Version: | HG 2.0 | ||
| Hardware: | Other | ||
| OS: | Other | ||
| Attachments: | Fix #1: use SDL_GetNextJoystickInstanceID() for alloc'ing joystick-ids in Emscripten joystick backend | ||
|
Description
David Ludwig
2020-04-18 15:52:40 UTC
Created attachment 4310 [details]
Fix #1: use SDL_GetNextJoystickInstanceID() for alloc'ing joystick-ids in Emscripten joystick backend
Here is an attempt at a fix. It seems to work fine for me, however it could, perhaps, use more testing, and maybe review by someone more familiar with SDL2's Emscripten joystick backend.
|