summaryrefslogtreecommitdiff
path: root/ButtonObserver.c
diff options
context:
space:
mode:
Diffstat (limited to 'ButtonObserver.c')
-rw-r--r--ButtonObserver.c33
1 files changed, 33 insertions, 0 deletions
diff --git a/ButtonObserver.c b/ButtonObserver.c
new file mode 100644
index 0000000..db21896
--- /dev/null
+++ b/ButtonObserver.c
@@ -0,0 +1,33 @@
+/*
+ * mousemate plugin for VDR
+ *
+ * ButtonObserver.c - MouseMate button observer class
+ *
+ *
+ * This code is distributed under the terms and conditions of the
+ * GNU GENERAL PUBLIC LICENSE. See the file COPYING for details.
+ */
+
+#include "ButtonObserver.h"
+
+cButtonObserver::cButtonObserver()
+{
+ pushed = false;
+ lastPush = 0;
+ click = false;
+ buttonCode = 0;
+ clickEvent = 0;
+ doubleClickEvent = 0;
+ pushedTurnLeftEvent=0;
+ pushedTurnRightEvent=0;
+}
+
+
+void cButtonObserver::Init(unsigned int buCo, int clEv, int dbClEv, int puTuRiEv, int puTuLeEv)
+{
+ buttonCode = buCo;
+ clickEvent = clEv;
+ doubleClickEvent = dbClEv;
+ pushedTurnLeftEvent=puTuLeEv;
+ pushedTurnRightEvent=puTuRiEv;
+}