Implemented additional dedicated keys

This commit is contained in:
Klaus Schmidinger
2002-10-27 14:32:06 +01:00
parent 462463404d
commit 74c74fb5d2
9 changed files with 389 additions and 121 deletions

23
keys.h
View File

@@ -4,7 +4,7 @@
* See the main source file 'vdr.c' for copyright information and
* how to reach the author.
*
* $Id: keys.h 1.1 2002/09/29 09:55:52 kls Exp $
* $Id: keys.h 1.2 2002/10/27 13:58:55 kls Exp $
*/
#ifndef __KEYS_H
@@ -26,10 +26,24 @@ enum eKeys { // "Up" and "Down" must be the first two keys!
kYellow,
kBlue,
k0, k1, k2, k3, k4, k5, k6, k7, k8, k9,
kPlay,
kPause,
kStop,
kRecord,
kFastFwd,
kFastRew,
kPower,
kChanUp,
kChanDn,
kVolUp,
kVolDn,
kMute,
kSchedule,
kChannels,
kTimers,
kRecordings,
kSetup,
kCommands,
kNone,
k_Setup,
// The following flags are OR'd with the above codes:
@@ -47,9 +61,10 @@ enum eKeys { // "Up" and "Down" must be the first two keys!
#define kEditCut k2
#define kEditTest k8
#define RAWKEY(k) (eKeys((k) & ~k_Flags))
#define ISRAWKEY(k) ((k) != kNone && ((k) & k_Flags) == 0)
#define NORMALKEY(k) (eKeys((k) & ~k_Repeat))
#define RAWKEY(k) (eKeys((k) & ~k_Flags))
#define ISRAWKEY(k) ((k) != kNone && ((k) & k_Flags) == 0)
#define NORMALKEY(k) (eKeys((k) & ~k_Repeat))
#define ISMODELESSKEY(k) (RAWKEY(k) > k9)
struct tKey {
eKeys type;