diff options
author | Klaus Schmidinger <vdr@tvdr.de> | 2002-12-15 10:58:00 +0100 |
---|---|---|
committer | Klaus Schmidinger <vdr@tvdr.de> | 2002-12-15 10:58:00 +0100 |
commit | b90e708733789290c633e620f24bd6eb08dd0c2d (patch) | |
tree | 31c8fcab50cb1b54ff51c2220aa29adee5db5a34 /keys.h | |
parent | 0f01d921066d81d0c6a4ddaa521048566cc28c80 (diff) | |
download | vdr-b90e708733789290c633e620f24bd6eb08dd0c2d.tar.gz vdr-b90e708733789290c633e620f24bd6eb08dd0c2d.tar.bz2 |
Implemented raw keyboard input
Diffstat (limited to 'keys.h')
-rw-r--r-- | keys.h | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -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; |