From 7787cd25f49102ef19db79ea6b9d294653d247c7 Mon Sep 17 00:00:00 2001 From: Jonathan Gordon Date: Mon, 30 Oct 2006 09:30:21 +0000 Subject: woops, removed a bit too much git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11394 a1c6a512-1295-4272-9138-f99709370657 --- firmware/export/button.h | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) (limited to 'firmware/export') 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); #elif CONFIG_KEYPAD == PLAYER_PAD + /* Main unit's buttons */ +#define BUTTON_ON 0x00000001 +#define BUTTON_STOP 0x00000002 + +#define BUTTON_LEFT 0x00000004 +#define BUTTON_RIGHT 0x00000008 +#define BUTTON_PLAY 0x00000010 +#define BUTTON_MENU 0x00000020 + +#define BUTTON_MAIN (BUTTON_ON|BUTTON_STOP|BUTTON_LEFT|BUTTON_RIGHT\ + |BUTTON_PLAY|BUTTON_MENU) + + /* Remote control's buttons */ +#define BUTTON_RC_PLAY 0x00100000 +#define BUTTON_RC_STOP 0x00080000 + +#define BUTTON_RC_LEFT 0x00040000 +#define BUTTON_RC_RIGHT 0x00020000 +#define BUTTON_RC_VOL_UP 0x00010000 +#define BUTTON_RC_VOL_DOWN 0x00008000 + +#define BUTTON_REMOTE (BUTTON_RC_PLAY|BUTTON_RC_STOP\ + |BUTTON_RC_LEFT|BUTTON_RC_RIGHT\ + |BUTTON_RC_VOL_UP|BUTTON_RC_VOL_DOWN) #elif CONFIG_KEYPAD == ONDIO_PAD -- cgit v1.2.3