mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-11-09 13:12:37 -05:00
xduoox3ii: Wrap the remote key detection in USE_REMOTE
Makes it straightforward to disable for debugging or defective hardware Change-Id: Ie72786f6e9eabf396a05ef8a02e422c34c97691a
This commit is contained in:
parent
ea1aef9b82
commit
c96dc1c886
1 changed files with 3 additions and 1 deletions
|
|
@ -26,6 +26,8 @@
|
||||||
#include "kernel.h"
|
#include "kernel.h"
|
||||||
#include "xduoolinux_codec.h"
|
#include "xduoolinux_codec.h"
|
||||||
|
|
||||||
|
#define USE_REMOTE /* Comment out to disable headphone remote */
|
||||||
|
|
||||||
int button_map(int keycode)
|
int button_map(int keycode)
|
||||||
{
|
{
|
||||||
switch(keycode)
|
switch(keycode)
|
||||||
|
|
@ -54,7 +56,7 @@ int button_map(int keycode)
|
||||||
case KEY_POWER:
|
case KEY_POWER:
|
||||||
return BUTTON_POWER;
|
return BUTTON_POWER;
|
||||||
|
|
||||||
#if defined(XDUOO_X3II) /* Headphone remote */
|
#if defined(XDUOO_X3II) && defined(USE_REMOTE) /* Headphone remote */
|
||||||
case KEY_NEXTSONG:
|
case KEY_NEXTSONG:
|
||||||
return (BUTTON_NEXT | BUTTON_DELAY_RELEASE);
|
return (BUTTON_NEXT | BUTTON_DELAY_RELEASE);
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue