Please sign in to comment.
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Emscripten: Fixed sending button and motion events for not opened joy…
…sticks. SDL_SYS_JoystickUpdate() was implemented incorrectly. For every call to it all attached joysticks were checked. But actually only the given SDL_Joystick should be checked then. This allowed sending broken events for attached but not opened joysticks. It also checked the opened joysticks more often than actually needed.
- Loading branch information
Showing with 2 additions and 3 deletions.