summaryrefslogtreecommitdiff
path: root/keys.h
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2002-12-15 10:58:00 +0100
committerKlaus Schmidinger <vdr@tvdr.de>2002-12-15 10:58:00 +0100
commitb90e708733789290c633e620f24bd6eb08dd0c2d (patch)
tree31c8fcab50cb1b54ff51c2220aa29adee5db5a34 /keys.h
parent0f01d921066d81d0c6a4ddaa521048566cc28c80 (diff)
downloadvdr-b90e708733789290c633e620f24bd6eb08dd0c2d.tar.gz
vdr-b90e708733789290c633e620f24bd6eb08dd0c2d.tar.bz2
Implemented raw keyboard input
Diffstat (limited to 'keys.h')
-rw-r--r--keys.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/keys.h b/keys.h
index 02c513ae..eb4b5b34 100644
--- a/keys.h
+++ b/keys.h
@@ -4,7 +4,7 @@
* See the main source file 'vdr.c' for copyright information and
* how to reach the author.
*
- * $Id: keys.h 1.4 2002/12/01 10:43:26 kls Exp $
+ * $Id: keys.h 1.5 2002/12/14 15:49:42 kls Exp $
*/
#ifndef __KEYS_H
@@ -46,6 +46,7 @@ enum eKeys { // "Up" and "Down" must be the first two keys!
kCommands,
kUser1, kUser2, kUser3, kUser4, kUser5, kUser6, kUser7, kUser8, kUser9,
kNone,
+ kKbd,
// The following codes are used internally:
k_Plugin,
k_Setup,
@@ -69,6 +70,10 @@ enum eKeys { // "Up" and "Down" must be the first two keys!
#define NORMALKEY(k) (eKeys((k) & ~k_Repeat))
#define ISMODELESSKEY(k) (RAWKEY(k) > k9)
+#define BASICKEY(k) (eKeys((k) & 0xFFFF))
+#define KBDKEY(k) (eKeys(((k) << 16) | kKbd))
+#define KEYKBD(k) (((k) >> 16) & 0xFFFF)
+
struct tKey {
eKeys type;
char *name;