openATV enigma2
openATV is an open source SetTopBox Graphical user interface.
rcsdl.h
Go to the documentation of this file.
1
#ifndef __lib_driver_rcsdl_h
2
#define __lib_driver_rcsdl_h
3
4
#include <
lib/driver/rc.h
>
5
6
#include <SDL2/SDL.h>
7
8
class
eSDLInputDevice
:
public
eRCDevice
9
{
10
private
:
11
bool
m_escape;
12
unsigned
int
m_unicode;
13
int
translateKey(SDL_Keycode 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
eRCDevice
A remote control.
Definition:
rc.h:27
eRCDevice::driver
eRCDriver * driver
Definition:
rc.h:30
eRCDriver
Definition:
rc.h:73
eSDLInputDevice
Definition:
rcsdl.h:9
eSDLInputDevice::~eSDLInputDevice
~eSDLInputDevice()
Definition:
rcsdl.cpp:15
eSDLInputDevice::getDescription
virtual const char * getDescription() const
Get user readable description.
Definition:
rcsdl.cpp:73
eSDLInputDevice::handleCode
virtual void handleCode(long arg)
Handles a device specific code.
Definition:
rcsdl.cpp:19
eSDLInputDevice::eSDLInputDevice
eSDLInputDevice(eRCDriver *driver)
Definition:
rcsdl.cpp:11
eSDLInputDriver
Definition:
rcsdl.h:24
eSDLInputDriver::eSDLInputDriver
eSDLInputDriver()
Definition:
rcsdl.cpp:350
eSDLInputDriver::~eSDLInputDriver
~eSDLInputDriver()
Definition:
rcsdl.cpp:356
eSDLInputDriver::getInstance
static eSDLInputDriver * getInstance()
Definition:
rcsdl.h:32
eSDLInputDriver::keyPressed
void keyPressed(const SDL_KeyboardEvent *key)
Definition:
rcsdl.cpp:361
Tools.UnitConversions.arg
arg
Definition:
UnitConversions.py:88
rc.h
lib
driver
rcsdl.h
Generated by
1.9.1