blob: a7b4ebe81f4403477711ce5e1439b885a968db90 (
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
|
/*
* gamepad.c: A plugin for the Video Disk Recorder
*
* See the README file for copyright information and how to reach the author.
*
* $Id$
*/
#ifndef GAMEPAD_HANDLER_THREAD_H
#define GAMEPAD_HANDLER_THREAD_H
#include <vdr/thread.h>
#include "gamepad_handler.h"
#include "fifo.h"
typedef cFifo<cGamepadHandler::generic_event> cEventFifo;
class cGamepadHandlerThread : public cThread
{
private:
cEventFifo *fifo;
protected:
virtual void Action(void);
public:
void Cancel(int WaitSeconds = 0);
cGamepadHandlerThread(cEventFifo *_fifo);
virtual ~cGamepadHandlerThread();
};
#endif
|