diff options
Diffstat (limited to 'ButtonObserver.h')
-rw-r--r-- | ButtonObserver.h | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/ButtonObserver.h b/ButtonObserver.h new file mode 100644 index 0000000..2e84d45 --- /dev/null +++ b/ButtonObserver.h @@ -0,0 +1,37 @@ +/* + * mousemate plugin for VDR + * + * ButtonObserver.h - 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. + */ + +#ifndef __BUTTON_OBSERVER_H +#define __BUTTON_OBSERVER_H + +#include <vdr/keys.h> +#include <vdr/thread.h> +#include <vdr/tools.h> +#include <vdr/remote.h> + +class cButtonObserver +{ + public: + bool pushed; + uint64_t lastPush; + bool click; + + int clickEvent; + int doubleClickEvent; + int pushedTurnLeftEvent; + int pushedTurnRightEvent; + + unsigned int buttonCode; + + cButtonObserver(); + + void Init(unsigned int buCo, int clEv, int dbClEv, int puTuRiEv, int puTuLeEv); +}; +#endif |