summaryrefslogtreecommitdiff
path: root/firmware/export/button.h
diff options
context:
space:
mode:
authorBjörn Stenberg <bjorn@haxx.se>2003-04-23 09:21:37 +0000
committerBjörn Stenberg <bjorn@haxx.se>2003-04-23 09:21:37 +0000
commit28cce684a3f433200e5257eb929ee8d7a63b67ff (patch)
tree6afe48a8bd53bac805e6ae19dd58f6843af5ccf1 /firmware/export/button.h
parent86587527f52db8320f8d8ea48dfc76d3d93d79c8 (diff)
downloadrockbox-28cce684a3f433200e5257eb929ee8d7a63b67ff.tar.gz
rockbox-28cce684a3f433200e5257eb929ee8d7a63b67ff.zip
Changed remote control button events to separate codes. Now the remote control works while keys are locked.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@3586 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/export/button.h')
-rw-r--r--firmware/export/button.h22
1 files changed, 9 insertions, 13 deletions
diff --git a/firmware/export/button.h b/firmware/export/button.h
index c980e2e36c..e3c37f9382 100644
--- a/firmware/export/button.h
+++ b/firmware/export/button.h
@@ -1,3 +1,4 @@
1
1/*************************************************************************** 2/***************************************************************************
2 * __________ __ ___. 3 * __________ __ ___.
3 * Open \______ \ ____ ____ | | _\_ |__ _______ ___ 4 * Open \______ \ ____ ____ | | _\_ |__ _______ ___
@@ -37,16 +38,18 @@ int button_get_w_tmo(int ticks);
37#define BUTTON_LEFT 0x0040 38#define BUTTON_LEFT 0x0040
38#define BUTTON_RIGHT 0x0080 39#define BUTTON_RIGHT 0x0080
39 40
40/* remote control buttons */
41#define BUTTON_VOL_UP 0x1000
42#define BUTTON_VOL_DOWN 0x1001
43
44/* Button modifiers */ 41/* Button modifiers */
42#define BUTTON_REMOTE 0x2000
45#define BUTTON_REPEAT 0x4000 43#define BUTTON_REPEAT 0x4000
46#define BUTTON_REL 0x8000 44#define BUTTON_REL 0x8000
47 45
48/* Special message */ 46/* remote control buttons */
49#define BUTTON_LOCKED 0x2000 47#define BUTTON_RC_VOL_UP (0x0008 | BUTTON_REMOTE)
48#define BUTTON_RC_VOL_DOWN (0x0800 | BUTTON_REMOTE)
49#define BUTTON_RC_PLAY (BUTTON_UP | BUTTON_REMOTE)
50#define BUTTON_RC_STOP (BUTTON_DOWN | BUTTON_REMOTE)
51#define BUTTON_RC_LEFT (BUTTON_LEFT | BUTTON_REMOTE)
52#define BUTTON_RC_RIGHT (BUTTON_RIGHT| BUTTON_REMOTE)
50 53
51#ifdef HAVE_RECORDER_KEYPAD 54#ifdef HAVE_RECORDER_KEYPAD
52 55
@@ -57,10 +60,6 @@ int button_get_w_tmo(int ticks);
57#define BUTTON_F2 0x0200 60#define BUTTON_F2 0x0200
58#define BUTTON_F3 0x0400 61#define BUTTON_F3 0x0400
59 62
60#define ALL_BUTTONS (BUTTON_ON | BUTTON_UP | BUTTON_DOWN | BUTTON_LEFT | \
61 BUTTON_RIGHT | BUTTON_OFF | BUTTON_PLAY | BUTTON_F1 | \
62 BUTTON_F2 | BUTTON_F3)
63
64#elif HAVE_PLAYER_KEYPAD 63#elif HAVE_PLAYER_KEYPAD
65 64
66/* Jukebox 6000 and Studio specific button codes */ 65/* Jukebox 6000 and Studio specific button codes */
@@ -68,9 +67,6 @@ int button_get_w_tmo(int ticks);
68#define BUTTON_PLAY BUTTON_UP 67#define BUTTON_PLAY BUTTON_UP
69#define BUTTON_STOP BUTTON_DOWN 68#define BUTTON_STOP BUTTON_DOWN
70 69
71#define ALL_BUTTONS (BUTTON_ON | BUTTON_UP | BUTTON_DOWN | BUTTON_LEFT | \
72 BUTTON_RIGHT | BUTTON_MENU)
73
74#endif /* HAVE_PLAYER_KEYPAD */ 70#endif /* HAVE_PLAYER_KEYPAD */
75 71
76#endif 72#endif