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 2363 - [Android] [OUYA] system button is not handled
Summary: [Android] [OUYA] system button is not handled
Status: RESOLVED WONTFIX
Alias: None
Product: SDL
Classification: Unclassified
Component: joystick (show other bugs)
Version: HG 2.0
Hardware: ARM Android (All)
: P2 normal
Assignee: Gabriel Jacobo
QA Contact: Sam Lantinga
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-01-25 13:49 UTC by Martin Gerhardy
Modified: 2014-01-28 16:36 UTC (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Martin Gerhardy 2014-01-25 13:49:55 UTC
The system button (right next to the dpad) is not reported as an event to SDL.

I tried testgamecontroller.c and controllermap.c - both do not react on pressing that button.
Comment 1 Gabriel Jacobo 2014-01-27 13:41:02 UTC
Can you debug this? How does the system button arrive to SDLActivity.java?
Comment 2 Martin Felis 2014-01-28 14:59:29 UTC
That button is probably reported as a standard keyboard event with keycode SDLK_PAUSE. See here: https://bitbucket.org/MartinFelis/love-android-sdl2/issue/12/ouya-controller-doesnt-fully-work#comment-7834288
Comment 3 Gabriel Jacobo 2014-01-28 15:03:15 UTC
If the driver reports the button as key, there's not much we can do...right?
Comment 4 Martin Gerhardy 2014-01-28 16:33:08 UTC
that means we can not create a game controller mapping string for all the strings... that sucks. but if it's reported as a key, that would already help me a lot. Thanks for pointing that out.
Comment 5 Martin Gerhardy 2014-01-28 16:36:14 UTC
I closed this now.