1 #ifndef __lib_driver_rcsdl_h
2 #define __lib_driver_rcsdl_h
4 #include <lib/driver/rc.h>
8 class eSDLInputDevice : public eRCDevice
12 unsigned int m_unicode;
13 int translateKey(SDLKey key);
16 eSDLInputDevice(eRCDriver *driver);
19 virtual void handleCode(long arg);
20 virtual const char *getDescription() const;
23 class eSDLInputDriver : public eRCDriver
26 static eSDLInputDriver *instance;
32 static eSDLInputDriver *getInstance() { return instance; }
34 void keyPressed(const SDL_KeyboardEvent *key);