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 2252

Summary: Button not recognized by SDL (Samsung Galaxy S3)
Product: SDL Reporter: Michal Kolodziejczyk <miko>
Component: *don't know*Assignee: Gabriel Jacobo <gabomdq>
Status: RESOLVED FIXED QA Contact: Sam Lantinga <slouken>
Severity: normal    
Priority: P2 CC: gabomdq
Version: HG 2.0   
Hardware: All   
OS: Android (All)   

Description Michal Kolodziejczyk 2013-11-19 10:26:07 UTC
After pressing "hardware buttons" (the touch area near the home button) on Samsung Galaxy S3 with Android 4.0.4, I got following errors:

Back (right of HOME):
I/SDL/APP ( 5690): The button you just pressed is not recognized by SDL. To help get this fixed, please report this to the SDL mailing list <sdl@libsdl.org> Android KeyCode 4

Menu (left of HOME)
I/SDL/APP ( 5690): The button you just pressed is not recognized by SDL. To help get this fixed, please report this to the SDL mailing list <sdl@libsdl.org> Android KeyCode 82
Comment 1 Gabriel Jacobo 2013-11-19 13:01:17 UTC
Let me know if this solves the problem, hopefully now those buttons will be processed as keyboard events: https://hg.libsdl.org/SDL/rev/109299fe73ad

Feel free to reopen if they don't!
Comment 2 Michal Kolodziejczyk 2013-11-19 14:28:16 UTC
There is some progress: when I start my application with on-screen keyboard visible (with SDL_StartTextInput() ), the menu "button" triggers the event correctly, but the "back" button does not. It is not a bug, because the keyboard hijacks it - after pressing it the keyboard is hidden.
However, after this I get no events for neither "button" nor "back" buttons.

So, to summarize: I get event for "menu" only when the on-screen keyboard is visible, and never for "back" button.
Comment 3 Michal Kolodziejczyk 2013-11-19 17:16:36 UTC
After recompiling everything from scratch it works! Sorry for reopening too quickly and thanks for the fix!