diff options
author | Klaus Schmidinger <vdr@tvdr.de> | 2002-10-27 15:46:30 +0100 |
---|---|---|
committer | Klaus Schmidinger <vdr@tvdr.de> | 2002-10-27 15:46:30 +0100 |
commit | 64fd9c4a1b44b125c67455b5b1b45fedcec7e4da (patch) | |
tree | 67f2e29f237f8b43452ca90c6c5a3a05a6a68da1 /remote.c | |
parent | 74c74fb5d2bdc026a611d74473788e4227d35a93 (diff) | |
download | vdr-64fd9c4a1b44b125c67455b5b1b45fedcec7e4da.tar.gz vdr-64fd9c4a1b44b125c67455b5b1b45fedcec7e4da.tar.bz2 |
Implemented key macros
Diffstat (limited to 'remote.c')
-rw-r--r-- | remote.c | 18 |
1 files changed, 17 insertions, 1 deletions
@@ -4,7 +4,7 @@ * See the main source file 'vdr.c' for copyright information and * how to reach the author. * - * $Id: remote.c 1.29 2002/10/12 15:22:08 kls Exp $ + * $Id: remote.c 1.30 2002/10/27 15:15:58 kls Exp $ */ #include "remote.h" @@ -84,6 +84,22 @@ bool cRemote::Put(eKeys Key) return true; // only a real key shall report an overflow! } +bool cRemote::PutMacro(eKeys Key) +{ + const cKeyMacro *km = KeyMacros.Get(Key); + if (km) { + for (int i = 1; i < MAXKEYSINMACRO; i++) { + if (km->Macro()[i] != kNone) { + if (!Put(km->Macro()[i])) + return false; + } + else + break; + } + } + return true; +} + bool cRemote::Put(uint64 Code, bool Repeat, bool Release) { char buffer[32]; |