| Summary: | Feature request : Android, let the OS handle the Volume key code. | ||
|---|---|---|---|
| Product: | SDL | Reporter: | Sylvain <sylvain.becker> |
| Component: | *don't know* | Assignee: | Ryan C. Gordon <icculus> |
| Status: | RESOLVED DUPLICATE | QA Contact: | Sam Lantinga <slouken> |
| Severity: | normal | ||
| Priority: | P2 | CC: | philipp.wiesemann |
| Version: | HG 2.0 | ||
| Hardware: | ARM | ||
| OS: | Android (All) | ||
hello, Maybe we could let Android handle Volume buttons ... This comes from PELYA's porting : // Key events @Override public boolean onKey(View v, int keyCode, KeyEvent event) { // Buttons Volume handled by application if (keyCode == KeyEvent.KEYCODE_VOLUME_DOWN || keyCode == KeyEvent.KEYCODE_VOLUME_UP) { if (event.getAction() == KeyEvent.ACTION_DOWN) { return super.onKeyDown(keyCode, event); } else if (event.getAction() == KeyEvent.ACTION_UP) { return super.onKeyUp(keyCode, event); } } ...