summaryrefslogtreecommitdiff
path: root/remote.c
diff options
context:
space:
mode:
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];