summaryrefslogtreecommitdiff
path: root/firmware/key.h
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/key.h')
-rw-r--r--firmware/key.h44
1 files changed, 0 insertions, 44 deletions
diff --git a/firmware/key.h b/firmware/key.h
deleted file mode 100644
index 13d41dbf1e..0000000000
--- a/firmware/key.h
+++ /dev/null
@@ -1,44 +0,0 @@
1/***************************************************************************
2 * __________ __ ___.
3 * Open \______ \ ____ ____ | | _\_ |__ _______ ___
4 * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
5 * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
6 * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
7 * \/ \/ \/ \/ \/
8 * $Id$
9 *
10 * Copyright (C) 2002 by Alan Korr
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#ifndef __key_h__
21#define __key_h__
22
23#include <sh7034.h>
24#include <system.h>
25
26#define key_released(key) \
27 (key_released_##key ())
28#define key_pressed(key) \
29 (!(key_released_##key ()))
30
31static inline int key_released_ON (void)
32 { return (QI(PADR+1)&(1<<5)); }
33static inline int key_released_STOP (void)
34 { return (QI(PADR+0)&(1<<3)); }
35static inline int key_released_MINUS (void)
36 { return (QI(PCDR+0)&(1<<0)); }
37static inline int key_released_MENU (void)
38 { return (QI(PCDR+0)&(1<<1)); }
39static inline int key_released_PLUS (void)
40 { return (QI(PCDR+0)&(1<<2)); }
41static inline int key_released_PLAY (void)
42 { return (QI(PCDR+0)&(1<<3)); }
43
44#endif