diff options
author | Klaus Schmidinger <vdr@tvdr.de> | 2000-10-08 11:39:11 +0200 |
---|---|---|
committer | Klaus Schmidinger <vdr@tvdr.de> | 2000-10-08 11:39:11 +0200 |
commit | 605d8df72ada13ae54fd4452f43f09f94ade87d1 (patch) | |
tree | 34dff9ced1c7c930e9e7e85e4ec6afa1173e0eb2 /config.h | |
parent | 97c3bb61482855769f0208062610543475f02006 (diff) | |
download | vdr-605d8df72ada13ae54fd4452f43f09f94ade87d1.tar.gz vdr-605d8df72ada13ae54fd4452f43f09f94ade87d1.tar.bz2 |
Explicit Repeat/Release handling for remote control
Diffstat (limited to 'config.h')
-rw-r--r-- | config.h | 11 |
1 files changed, 9 insertions, 2 deletions
@@ -4,7 +4,7 @@ * See the main source file 'vdr.c' for copyright information and * how to reach the author. * - * $Id: config.h 1.23 2000/10/07 17:34:23 kls Exp $ + * $Id: config.h 1.24 2000/10/08 10:38:17 kls Exp $ */ #ifndef __CONFIG_H @@ -34,9 +34,16 @@ enum eKeys { // "Up" and "Down" must be the first two keys! kYellow, kBlue, k0, k1, k2, k3, k4, k5, k6, k7, k8, k9, - kNone + kNone, + // The following flags are OR'd with the above codes: + k_Repeat = 0x8000, + k_Release = 0x4000, + k_Flags = k_Repeat | k_Release, }; +#define ISNORMALKEY(k) ((k) != kNone && ((k) & k_Flags) == 0) +#define NORMALKEY(k) ((k) & ~k_Flags) + struct tKey { eKeys type; char *name; |