mirror of
https://github.com/libsdl-org/SDL.git
synced 2026-04-05 16:45:33 +02:00
59602fb4732c8ab6f3e0a9d94d7fb8e34f1f79f8
navigator.getGamepads() can return null for a slot if the gamepad disconnects between the gamepadconnected event and the proxied MAIN_THREAD_EM_ASM_INT call. This causes a TypeError when accessing gamepad.id. Add null guards matching the pattern already used in EMSCRIPTEN_JoystickOpen and EMSCRIPTEN_JoystickRumble.
Simple DirectMedia Layer (SDL for short) is a cross-platform library designed to make it easy to write multi-media software, such as games and emulators.
You can find the latest release and additional information at: https://www.libsdl.org/
Installation instructions and a quick introduction is available in INSTALL.md
This library is distributed under the terms of the zlib license, available in LICENSE.txt.
Enjoy!
Sam Lantinga (slouken@libsdl.org)
Languages
C
85.7%
C++
6.6%
Objective-C
3.4%
CMake
1.6%
Perl
0.7%
Other
1.7%