|
Gnash
0.8.11dev
|
#include <InputDevice.h>
Classes | |
| struct | input_data_t |
Public Types |
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) |
| std::unique_ptr< std::uint8_t[]> | readData (size_t size) |
| std::shared_ptr< input_data_t > | popData () |
| void | setScreenSize (int x, int y) |
| void | dump () const |
Static Public Member Functions | |
| static DSOEXPORT std::vector< std::shared_ptr< InputDevice > > | scanForDevices () |
| static DSOEXPORT std::unique_ptr< 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 |
| std::unique_ptr< std::uint8_t[]> | _buffer |
| std::queue< std::shared_ptr< input_data_t > > | _data |
| int | _screen_width |
| int | _screen_height |
| gnash::InputDevice::InputDevice | ( | ) |
| gnash::InputDevice::InputDevice | ( | int | x, |
| int | y | ||
| ) |
|
virtual |
|
protected |
Referenced by gnash::MouseDevice::check(), and gnash::TouchDevice::check().
|
pure virtual |
Implemented in gnash::EventDevice, gnash::TouchDevice, and gnash::MouseDevice.
|
static |
Referenced by gnash::MouseDevice::check(), gnash::TouchDevice::check(), and gnash::gui::FBGui::checkForData().
|
inline |
|
pure virtual |
Implemented in gnash::EventDevice, gnash::TouchDevice, and gnash::MouseDevice.
Referenced by scanForDevices().
|
virtual |
Reimplemented in gnash::EventDevice, gnash::TouchDevice, and gnash::MouseDevice.
Referenced by init().
| bool gnash::InputDevice::init | ( | InputDevice::devicetype_e | type | ) |
References GNASH_REPORT_FUNCTION, and init().
| bool gnash::InputDevice::init | ( | InputDevice::devicetype_e | type, |
| size_t | size | ||
| ) |
References GNASH_REPORT_FUNCTION, and init().
| bool gnash::InputDevice::init | ( | devicetype_e | type, |
| const std::string & | filespec | ||
| ) |
| bool gnash::InputDevice::init | ( | InputDevice::devicetype_e | type, |
| const std::string & | filespec, | ||
| size_t | size | ||
| ) |
References _filespec, _type, GNASH_REPORT_FUNCTION, and init().
|
pure virtual |
Implemented in gnash::EventDevice, gnash::TouchDevice, and gnash::MouseDevice.
|
inline |
| std::unique_ptr< std::uint8_t[]> gnash::InputDevice::readData | ( | size_t | size | ) |
References _, _fd, gnash::log_error(), and ret.
Referenced by gnash::MouseDevice::check(), and gnash::EventDevice::check().
|
static |
|
inline |
References x.
|
protected |
|
protected |
Referenced by addData(), and gnash::EventDevice::check().
|
protected |
|
protected |
Referenced by dump(), init(), gnash::MouseDevice::init(), gnash::TouchDevice::init(), and gnash::EventDevice::init().
|
protected |
Referenced by gnash::MouseDevice::check(), and gnash::EventDevice::check().
|
protected |
Referenced by gnash::MouseDevice::check(), gnash::TouchDevice::check(), and gnash::EventDevice::init().
|
protected |
Referenced by gnash::MouseDevice::check(), gnash::TouchDevice::check(), and gnash::EventDevice::init().
|
protected |
1.8.11