Please sign in to comment.
handle SDL joystick query errors #451
SDL APIs like `SDL_JoystickNumAxes(dev)` can return a negative error code. Handle this case better. This should fix the fatal exception from trying to allocate an array with an illegal size (negative, due to the error.) Signed-off-by: Rafael Kitover <firstname.lastname@example.org>
- Loading branch information