Gnash 0.8.9
|
#include <InputDevice.h>
Public Types | |
enum | devicetype_e { UNKNOWN, KEYBOARD, MOUSE, TOUCHSCREEN, TOUCHMOUSE, POWERBUTTON, SLEEPBUTTON, SERIALUSB, INFRARED } |
Public Member Functions | |
InputDevice () | |
InputDevice (Gui *gui) | |
virtual | ~InputDevice () |
virtual bool | init () |
bool | init (devicetype_e type) |
bool | init (devicetype_e type, size_t size) |
bool | init (devicetype_e type, const std::string &filespec) |
bool | init (devicetype_e type, const std::string &filespec, size_t size) |
virtual bool | init (const std::string &filespec, size_t size)=0 |
virtual bool | check ()=0 |
InputDevice::devicetype_e | getType () const |
boost::shared_array < boost::uint8_t > | readData (size_t size) |
void | dump () const |
Static Public Member Functions | |
static std::vector < boost::shared_ptr < InputDevice > > | scanForDevices (Gui *gui) |
Protected Attributes | |
devicetype_e | _type |
std::string | _filespec |
int | _fd |
int | _x |
int | _y |
int | _button |
size_t | _position |
boost::scoped_array < boost::uint8_t > | _buffer |
Gui * | _gui |
gnash::InputDevice::InputDevice | ( | ) |
gnash::InputDevice::InputDevice | ( | Gui * | gui | ) |
gnash::InputDevice::~InputDevice | ( | ) | [virtual] |
virtual bool gnash::InputDevice::check | ( | ) | [pure virtual] |
Implemented in gnash::MouseDevice, gnash::TouchDevice, and gnash::EventDevice.
InputDevice::devicetype_e gnash::InputDevice::getType | ( | ) | const [inline] |
References _type.
bool gnash::InputDevice::init | ( | InputDevice::devicetype_e | type | ) |
References GNASH_REPORT_FUNCTION, and init().
Referenced by init().
bool gnash::InputDevice::init | ( | devicetype_e | type, |
const std::string & | filespec | ||
) |
bool gnash::InputDevice::init | ( | InputDevice::devicetype_e | type, |
size_t | size | ||
) |
References GNASH_REPORT_FUNCTION, and init().
virtual bool gnash::InputDevice::init | ( | const std::string & | filespec, |
size_t | size | ||
) | [pure virtual] |
Implemented in gnash::MouseDevice, gnash::TouchDevice, and gnash::EventDevice.
bool gnash::InputDevice::init | ( | InputDevice::devicetype_e | type, |
const std::string & | filespec, | ||
size_t | size | ||
) |
References _filespec, _type, GNASH_REPORT_FUNCTION, and init().
bool gnash::InputDevice::init | ( | ) | [virtual] |
Reimplemented in gnash::MouseDevice, gnash::TouchDevice, and gnash::EventDevice.
Referenced by init().
boost::shared_array< boost::uint8_t > gnash::InputDevice::readData | ( | size_t | size | ) |
References _fd, GNASH_REPORT_FUNCTION, and gnash::hexify().
Referenced by gnash::MouseDevice::check(), and gnash::EventDevice::check().
std::vector< boost::shared_ptr< InputDevice > > gnash::InputDevice::scanForDevices | ( | Gui * | gui | ) | [static] |
Reimplemented in gnash::MouseDevice, gnash::TouchDevice, and gnash::EventDevice.
References gnash::image::begin().
Referenced by gnash::FBGui::init().
boost::scoped_array<boost::uint8_t> gnash::InputDevice::_buffer [protected] |
Referenced by gnash::MouseDevice::init().
int gnash::InputDevice::_button [protected] |
Referenced by gnash::MouseDevice::check().
int gnash::InputDevice::_fd [protected] |
std::string gnash::InputDevice::_filespec [protected] |
Referenced by dump(), gnash::TouchDevice::init(), gnash::MouseDevice::init(), init(), and gnash::EventDevice::init().
Gui* gnash::InputDevice::_gui [protected] |
size_t gnash::InputDevice::_position [protected] |
devicetype_e gnash::InputDevice::_type [protected] |
int gnash::InputDevice::_x [protected] |
Referenced by gnash::MouseDevice::check(), and dump().
int gnash::InputDevice::_y [protected] |
Referenced by gnash::MouseDevice::check(), and dump().