summaryrefslogtreecommitdiff
path: root/firmware/export/button.h
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/export/button.h')
-rw-r--r--firmware/export/button.h24
1 files changed, 24 insertions, 0 deletions
diff --git a/firmware/export/button.h b/firmware/export/button.h
index baba07fc1f..d702b50fcd 100644
--- a/firmware/export/button.h
+++ b/firmware/export/button.h
@@ -110,6 +110,30 @@ void wheel_send_events(bool send);
110 110
111#elif CONFIG_KEYPAD == PLAYER_PAD 111#elif CONFIG_KEYPAD == PLAYER_PAD
112 112
113 /* Main unit's buttons */
114#define BUTTON_ON 0x00000001
115#define BUTTON_STOP 0x00000002
116
117#define BUTTON_LEFT 0x00000004
118#define BUTTON_RIGHT 0x00000008
119#define BUTTON_PLAY 0x00000010
120#define BUTTON_MENU 0x00000020
121
122#define BUTTON_MAIN (BUTTON_ON|BUTTON_STOP|BUTTON_LEFT|BUTTON_RIGHT\
123 |BUTTON_PLAY|BUTTON_MENU)
124
125 /* Remote control's buttons */
126#define BUTTON_RC_PLAY 0x00100000
127#define BUTTON_RC_STOP 0x00080000
128
129#define BUTTON_RC_LEFT 0x00040000
130#define BUTTON_RC_RIGHT 0x00020000
131#define BUTTON_RC_VOL_UP 0x00010000
132#define BUTTON_RC_VOL_DOWN 0x00008000
133
134#define BUTTON_REMOTE (BUTTON_RC_PLAY|BUTTON_RC_STOP\
135 |BUTTON_RC_LEFT|BUTTON_RC_RIGHT\
136 |BUTTON_RC_VOL_UP|BUTTON_RC_VOL_DOWN)
113 137
114 138
115#elif CONFIG_KEYPAD == ONDIO_PAD 139#elif CONFIG_KEYPAD == ONDIO_PAD