#include <InputDevice.h>
Public Member Functions | |
EventDevice () | |
const char * | id () |
virtual bool | init () |
virtual bool | init (const std::string &filespec, size_t size) |
virtual bool | check () |
gnash::key::code | scancode_to_gnash_key (int code, bool shift) |
Static Public Member Functions | |
static std::vector < boost::shared_ptr < InputDevice > > | scanForDevices () |
gnash::EventDevice::EventDevice | ( | ) |
References gnash::dbglogfile, and gnash::LogFile::getDefaultInstance().
bool gnash::EventDevice::check | ( | ) | [virtual] |
Everytime we get the EV_SYN message we add this fully populated event to queue of events. As the GUI polls for events, there may be multiple events in the queue by the time the main event loop comes around to process the events.
Implements gnash::InputDevice.
const char* gnash::EventDevice::id | ( | ) | [inline, virtual] |
Implements gnash::InputDevice.
bool gnash::EventDevice::init | ( | ) | [virtual] |
Reimplemented from gnash::InputDevice.
Referenced by init().
bool gnash::EventDevice::init | ( | const std::string & | filespec, | |
size_t | size | |||
) | [virtual] |
Implements gnash::InputDevice.
References init().
gnash::key::code gnash::EventDevice::scancode_to_gnash_key | ( | int | code, | |
bool | shift | |||
) |
std::vector< boost::shared_ptr< InputDevice > > gnash::EventDevice::scanForDevices | ( | ) | [static] |
Reimplemented from gnash::InputDevice.