forked from len0rd/rockbox
Add support multimedia keys/buttons to the core, and adapt Rockbox on android for it (multimedia buttons are found on wired headsets and the lock screen in cyanogenmod).
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28421 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
dbe2ac1ec6
commit
49f1ec8e8a
13 changed files with 300 additions and 17 deletions
|
@ -183,8 +183,9 @@ static int get_action_worker(int context, int timeout,
|
|||
else
|
||||
button = button_get_w_tmo(timeout);
|
||||
|
||||
/* Data from sys events can be pulled with button_get_data */
|
||||
if (button == BUTTON_NONE || button & SYS_EVENT)
|
||||
/* Data from sys events can be pulled with button_get_data
|
||||
* multimedia button presses don't go through the action system */
|
||||
if (button == BUTTON_NONE || button & (SYS_EVENT|BUTTON_MULTIMEDIA))
|
||||
return button;
|
||||
/* Don't send any buttons through untill we see the release event */
|
||||
if (wait_for_release)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue