summaryrefslogtreecommitdiff
path: root/remote.c
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2002-10-27 15:46:30 +0100
committerKlaus Schmidinger <vdr@tvdr.de>2002-10-27 15:46:30 +0100
commit64fd9c4a1b44b125c67455b5b1b45fedcec7e4da (patch)
tree67f2e29f237f8b43452ca90c6c5a3a05a6a68da1 /remote.c
parent74c74fb5d2bdc026a611d74473788e4227d35a93 (diff)
downloadvdr-64fd9c4a1b44b125c67455b5b1b45fedcec7e4da.tar.gz
vdr-64fd9c4a1b44b125c67455b5b1b45fedcec7e4da.tar.bz2
Implemented key macros
Diffstat (limited to 'remote.c')
-rw-r--r--remote.c18
1 files changed, 17 insertions, 1 deletions
diff --git a/remote.c b/remote.c
index 05ce6063..6078c26b 100644
--- a/remote.c
+++ b/remote.c
@@ -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];