We are currently migrating Bugzilla to GitHub issues.
Any changes made to the bug tracker now will be lost, so please do not post new bugs or make changes to them.
When we're done, all bug URLs will redirect to their equivalent location on the new bug tracker.

Bug 2224

Summary: Check if keycode_to_SDL returns a nonnegative value (before calling SDL_PrivateJoystickButton).
Product: SDL Reporter: ny00
Component: joystickAssignee: Sam Lantinga <slouken>
Status: RESOLVED FIXED QA Contact: Sam Lantinga <slouken>
Severity: normal    
Priority: P2 CC: gabomdq
Version: HG 2.1   
Hardware: All   
OS: Android (All)   

Description ny00 2013-11-11 10:54:59 UTC
With a recent commit fixing Bug 2214, keycode_to_SDL may return the (int) value of -1, to be passed to SDL_PrivateJoystickButton as is. (See Android_OnPadDown and Android_OnPadUp in src/joystick/android/SDL_sysjoystick.c.)
Comment 1 Gabriel Jacobo 2013-11-11 13:16:50 UTC
Fixed: https://hg.libsdl.org/SDL/rev/965b7e09c5a8