#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 () |
| boost::shared_array < boost::uint8_t > | readData (size_t size) |
| void | dump () |
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 | ( | ) | [inline] |
References _type.
| bool gnash::InputDevice::init | ( | InputDevice::devicetype_e | type | ) |
| bool gnash::InputDevice::init | ( | devicetype_e | type, | |
| const std::string & | filespec | |||
| ) |
| bool gnash::InputDevice::init | ( | InputDevice::devicetype_e | type, | |
| size_t | size | |||
| ) |
References 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 | |||
| ) |
| 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, errno, and gnash::hexify().
Referenced by gnash::MouseDevice::check().
| std::vector< boost::shared_ptr< InputDevice > > gnash::InputDevice::scanForDevices | ( | Gui * | gui | ) | [static] |
Reimplemented in gnash::MouseDevice, gnash::TouchDevice, and gnash::EventDevice.
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] |
Referenced by gnash::MouseDevice::check(), gnash::MouseDevice::command(), dump(), gnash::MouseDevice::init(), and readData().
std::string gnash::InputDevice::_filespec [protected] |
Referenced by dump(), gnash::TouchDevice::init(), gnash::MouseDevice::init(), and init().
Gui* gnash::InputDevice::_gui [protected] |
size_t gnash::InputDevice::_position [protected] |
devicetype_e gnash::InputDevice::_type [protected] |
Referenced by gnash::MouseDevice::check(), dump(), getType(), gnash::TouchDevice::init(), gnash::MouseDevice::init(), and init().
int gnash::InputDevice::_x [protected] |
Referenced by gnash::MouseDevice::check(), and dump().
int gnash::InputDevice::_y [protected] |
Referenced by gnash::MouseDevice::check(), and dump().
1.7.1