#include <InputDevice.h>
Classes | |
| struct | input_data_t |
Public Types | |
| enum | devicetype_e { UNKNOWN, KEYBOARD, UMOUSE, MOUSE, TABLET, TOUCHSCREEN, TOUCHMOUSE, POWERBUTTON, SLEEPBUTTON, SERIALUSB, INFRARED, UINPUT, TSLIB } |
Public Member Functions | |
| InputDevice () | |
| InputDevice (int x, int y) | |
| virtual | ~InputDevice () |
| virtual const char * | id ()=0 |
| 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 () |
| void | setType (InputDevice::devicetype_e x) |
| boost::shared_array < boost::uint8_t > | readData (size_t size) |
| boost::shared_ptr< input_data_t > | popData () |
| void | setScreenSize (int x, int y) |
| void | dump () const |
Static Public Member Functions | |
| static std::vector < boost::shared_ptr < InputDevice > > | scanForDevices () |
| static boost::shared_array< int > | convertAbsCoords (int x, int y, int width, int height) |
Protected Member Functions | |
| void | addData (bool pressed, key::code key, int modifier, int x, int y) |
Protected Attributes | |
| devicetype_e | _type |
| std::string | _filespec |
| int | _fd |
| input_data_t | _input_data |
| boost::scoped_array < boost::uint8_t > | _buffer |
| std::queue< boost::shared_ptr < input_data_t > > | _data |
| int | _screen_width |
| int | _screen_height |
| gnash::InputDevice::InputDevice | ( | ) |
References _input_data.
| gnash::InputDevice::InputDevice | ( | int | x, | |
| int | y | |||
| ) |
References _input_data.
| gnash::InputDevice::~InputDevice | ( | ) | [virtual] |
| void gnash::InputDevice::addData | ( | bool | pressed, | |
| key::code | key, | |||
| int | modifier, | |||
| int | x, | |||
| int | y | |||
| ) | [protected] |
References _data.
Referenced by gnash::TouchDevice::check(), and gnash::MouseDevice::check().
| virtual bool gnash::InputDevice::check | ( | ) | [pure virtual] |
Implemented in gnash::MouseDevice, gnash::TouchDevice, and gnash::EventDevice.
| boost::shared_array< int > gnash::InputDevice::convertAbsCoords | ( | int | x, | |
| int | y, | |||
| int | width, | |||
| int | height | |||
| ) | [static] |
Referenced by gnash::TouchDevice::check(), and gnash::MouseDevice::check().
| InputDevice::devicetype_e gnash::InputDevice::getType | ( | ) | [inline] |
References _type.
| virtual const char* gnash::InputDevice::id | ( | ) | [pure virtual] |
Implemented in gnash::MouseDevice, gnash::TouchDevice, and gnash::EventDevice.
| bool gnash::InputDevice::init | ( | ) | [virtual] |
Reimplemented in gnash::MouseDevice, gnash::TouchDevice, and gnash::EventDevice.
Referenced by 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 | ( | devicetype_e | type, | |
| const std::string & | filespec | |||
| ) |
| bool gnash::InputDevice::init | ( | InputDevice::devicetype_e | type, | |
| size_t | size | |||
| ) |
References init().
| bool gnash::InputDevice::init | ( | InputDevice::devicetype_e | type, | |
| const std::string & | filespec, | |||
| size_t | size | |||
| ) |
| bool gnash::InputDevice::init | ( | InputDevice::devicetype_e | type | ) |
References init().
| boost::shared_ptr<input_data_t> gnash::InputDevice::popData | ( | ) | [inline] |
References _data.
| boost::shared_array< boost::uint8_t > gnash::InputDevice::readData | ( | size_t | size | ) |
Referenced by gnash::MouseDevice::check().
| std::vector< boost::shared_ptr< InputDevice > > gnash::InputDevice::scanForDevices | ( | ) | [static] |
Reimplemented in gnash::MouseDevice, gnash::TouchDevice, and gnash::EventDevice.
References _, and gnash::image::begin().
Referenced by main().
| void gnash::InputDevice::setScreenSize | ( | int | x, | |
| int | y | |||
| ) | [inline] |
References _screen_height, and _screen_width.
| void gnash::InputDevice::setType | ( | InputDevice::devicetype_e | x | ) | [inline] |
References _type.
boost::scoped_array<boost::uint8_t> gnash::InputDevice::_buffer [protected] |
std::queue<boost::shared_ptr<input_data_t> > gnash::InputDevice::_data [protected] |
int gnash::InputDevice::_fd [protected] |
Referenced by gnash::MouseDevice::command(), dump(), gnash::TouchDevice::init(), gnash::MouseDevice::init(), and readData().
std::string gnash::InputDevice::_filespec [protected] |
Referenced by dump(), gnash::TouchDevice::init(), gnash::MouseDevice::init(), and init().
input_data_t gnash::InputDevice::_input_data [protected] |
Referenced by gnash::MouseDevice::check(), and InputDevice().
int gnash::InputDevice::_screen_height [protected] |
Referenced by gnash::TouchDevice::check(), gnash::MouseDevice::check(), and setScreenSize().
int gnash::InputDevice::_screen_width [protected] |
Referenced by gnash::TouchDevice::check(), gnash::MouseDevice::check(), and setScreenSize().
devicetype_e gnash::InputDevice::_type [protected] |
Referenced by gnash::MouseDevice::check(), dump(), getType(), gnash::TouchDevice::init(), gnash::MouseDevice::init(), init(), and setType().
1.7.1