blob: 2e84d451cc3266292027d33162c9b96fc9df1921 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
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
|