blob: db2189659a7d03222d6a3db182a7e28b9cd07c28 (
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
|
/*
* 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;
}
|