summaryrefslogtreecommitdiff
path: root/firmware/button.h
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/button.h')
-rw-r--r--firmware/button.h47
1 files changed, 47 insertions, 0 deletions
diff --git a/firmware/button.h b/firmware/button.h
new file mode 100644
index 0000000000..93ac4b8eac
--- /dev/null
+++ b/firmware/button.h
@@ -0,0 +1,47 @@
1/***************************************************************************
2 * __________ __ ___.
3 * Open \______ \ ____ ____ | | _\_ |__ _______ ___
4 * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
5 * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
6 * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
7 * \/ \/ \/ \/ \/
8 * $Id$
9 *
10 * Copyright (C) 2002 by Daniel Stenberg
11 *
12 * All files in this archive are subject to the GNU General Public License.
13 * See the file COPYING in the source tree root for full license agreement.
14 *
15 * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
16 * KIND, either express or implied.
17 *
18 ****************************************************************************/
19
20#include "config.h"
21
22#ifdef HAVE_RECORDER_KEYPAD
23/*
24 * Archos Jukebox Recorder button functions
25 */
26
27/* Button codes */
28#define BUTTON_NONE 0x0000
29#define BUTTON_ON 0x0001
30#define BUTTON_OFF 0x0002
31#define BUTTON_PLAY 0x0004
32#define BUTTON_UP 0x0010
33#define BUTTON_DOWN 0x0020
34#define BUTTON_LEFT 0x0040
35#define BUTTON_RIGHT 0x0080
36#define BUTTON_F1 0x0100
37#define BUTTON_F2 0x0200
38#define BUTTON_F3 0x0400
39
40/* Button modifiers */
41#define BUTTON_HELD 0x4000
42#define BUTTON_REL 0x8000
43
44void button_init (void);
45int get_button (void);
46
47#endif