servicemp3.cpp: more simple/flexible streaming detection
[enigma2.git] / lib / driver / rcsdl.h
1 #ifndef __lib_driver_rcsdl_h
2 #define __lib_driver_rcsdl_h
3
4 #include <lib/driver/rc.h>
5
6 #include <SDL.h>
7
8 class eSDLInputDevice : public eRCDevice
9 {
10 private:
11         bool m_escape;
12         unsigned int m_unicode;
13         int translateKey(SDLKey key);
14
15 public:
16         eSDLInputDevice(eRCDriver *driver);
17         ~eSDLInputDevice();
18
19         virtual void handleCode(long arg);
20         virtual const char *getDescription() const;
21 };
22
23 class eSDLInputDriver : public eRCDriver
24 {
25 private:
26         static eSDLInputDriver *instance;
27
28 public:
29         eSDLInputDriver();
30         ~eSDLInputDriver();
31
32         static eSDLInputDriver *getInstance() { return instance; }
33
34         void keyPressed(const SDL_KeyboardEvent *key);
35 };
36
37 #endif