Commit 8321efba3341c642820aee430e8c1de6eb33be63

Philipp Wiesemann 2015-02-22T23:21:32

Emscripten: Fixed out of range joystick device index after joystick disconnect. After disconnecting a joystick the remaining kept their original device index. This was not correct because the device index must be a number between 0 and SDL_NumJoysticks(). It was fixed with ideas from SDL's joystick implementation for Android. Some range checks were removed as the caller already checks them.