summaryrefslogtreecommitdiff
path: root/firmware/button.h
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2002-04-16 13:37:50 +0000
committerDaniel Stenberg <daniel@haxx.se>2002-04-16 13:37:50 +0000
commitfeef1ed07690c5b027e441d1ffdc381d8e71038c (patch)
tree7edac39fcef9a755c72d9cecd16ae2e029bcdb8f /firmware/button.h
parentefca1cd39a29afa32a00748e432513c9eec066aa (diff)
downloadrockbox-feef1ed07690c5b027e441d1ffdc381d8e71038c.tar.gz
rockbox-feef1ed07690c5b027e441d1ffdc381d8e71038c.zip
Gary's code for reading the Recorder's keyboard. This can't yet be used in
the simulator as we need to tweak how it reads raw input when we simulate this. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@101 a1c6a512-1295-4272-9138-f99709370657
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