diff options
Diffstat (limited to 'firmware/export/button.h')
-rw-r--r-- | firmware/export/button.h | 46 |
1 files changed, 2 insertions, 44 deletions
diff --git a/firmware/export/button.h b/firmware/export/button.h index 686fe79937..18da59e13a 100644 --- a/firmware/export/button.h +++ b/firmware/export/button.h | |||
@@ -72,51 +72,9 @@ void wheel_send_events(bool send); | |||
72 | #else | 72 | #else |
73 | 73 | ||
74 | /* Target specific button codes */ | 74 | /* Target specific button codes */ |
75 | 75 | #if (CONFIG_KEYPAD == IRIVER_H100_PAD) \ | |
76 | #if (CONFIG_KEYPAD == IRIVER_H100_PAD)\ | ||
77 | || (CONFIG_KEYPAD == IRIVER_H300_PAD) | 76 | || (CONFIG_KEYPAD == IRIVER_H300_PAD) |
78 | 77 | #include "button-target.h" | |
79 | /* iRiver H100/H300 specific button codes */ | ||
80 | |||
81 | /* Main unit's buttons */ | ||
82 | #define BUTTON_ON 0x00000001 | ||
83 | #define BUTTON_OFF 0x00000002 | ||
84 | |||
85 | #define BUTTON_LEFT 0x00000004 | ||
86 | #define BUTTON_RIGHT 0x00000008 | ||
87 | #define BUTTON_UP 0x00000010 | ||
88 | #define BUTTON_DOWN 0x00000020 | ||
89 | |||
90 | #define BUTTON_REC 0x00000040 | ||
91 | #define BUTTON_MODE 0x00000080 | ||
92 | |||
93 | #define BUTTON_SELECT 0x00000100 | ||
94 | |||
95 | #define BUTTON_MAIN (BUTTON_ON|BUTTON_OFF|BUTTON_LEFT|BUTTON_RIGHT|\ | ||
96 | BUTTON_UP|BUTTON_DOWN|BUTTON_REC|BUTTON_MODE|BUTTON_SELECT) | ||
97 | |||
98 | /* Remote control's buttons */ | ||
99 | #define BUTTON_RC_ON 0x00100000 | ||
100 | #define BUTTON_RC_STOP 0x00080000 | ||
101 | |||
102 | #define BUTTON_RC_REW 0x00040000 | ||
103 | #define BUTTON_RC_FF 0x00020000 | ||
104 | #define BUTTON_RC_VOL_UP 0x00010000 | ||
105 | #define BUTTON_RC_VOL_DOWN 0x00008000 | ||
106 | |||
107 | #define BUTTON_RC_REC 0x00004000 | ||
108 | #define BUTTON_RC_MODE 0x00002000 | ||
109 | |||
110 | #define BUTTON_RC_MENU 0x00001000 | ||
111 | |||
112 | #define BUTTON_RC_BITRATE 0x00000800 | ||
113 | #define BUTTON_RC_SOURCE 0x00000400 | ||
114 | |||
115 | #define BUTTON_REMOTE (BUTTON_RC_ON|BUTTON_RC_STOP|BUTTON_RC_REW|BUTTON_RC_FF\ | ||
116 | |BUTTON_RC_VOL_UP|BUTTON_RC_VOL_DOWN|BUTTON_RC_REC\ | ||
117 | |BUTTON_RC_MODE|BUTTON_RC_MENU|BUTTON_RC_BITRATE\ | ||
118 | |BUTTON_RC_SOURCE) | ||
119 | |||
120 | #elif CONFIG_KEYPAD == RECORDER_PAD | 78 | #elif CONFIG_KEYPAD == RECORDER_PAD |
121 | 79 | ||
122 | /* Recorder specific button codes */ | 80 | /* Recorder specific button codes */ |