Gnash
0.8.11dev
|
#include <InputDevice.h>
Public Member Functions | |
const char * | id () |
TouchDevice () | |
virtual | ~TouchDevice () |
bool | init () |
bool | init (const std::string &filespec, size_t size) |
bool | check () |
void | apply_ts_calibration (float *cx, float *cy, int rawx, int rawy) |
![]() | |
InputDevice () | |
InputDevice (int x, int y) | |
virtual | ~InputDevice () |
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) |
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 DSOEXPORT boost::shared_array< int > | convertAbsCoords (int x, int y, int width, int height) |
Additional Inherited Members | |
![]() | |
enum | devicetype_e { UNKNOWN, KEYBOARD, UMOUSE, MOUSE, TABLET, TOUCHSCREEN, TOUCHMOUSE, POWERBUTTON, SLEEPBUTTON, SERIALUSB, INFRARED, UINPUT, TSLIB } |
![]() | |
void | addData (bool pressed, key::code key, int modifier, int x, int y) |
![]() | |
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::TouchDevice::TouchDevice | ( | ) |
Referenced by scanForDevices().
|
virtual |
void gnash::TouchDevice::apply_ts_calibration | ( | float * | cx, |
float * | cy, | ||
int | rawx, | ||
int | rawy | ||
) |
initialized
References _, gnash::key::a, gnash::key::b, gnash::key::c, gnash::key::d, gnash::key::e, gnash::key::f, GNASH_REPORT_FUNCTION, and gnash::key::k.
|
virtual |
|
inlinevirtual |
Implements gnash::InputDevice.
|
virtual |
Reimplemented from gnash::InputDevice.
|
virtual |
Implements gnash::InputDevice.
References _, gnash::InputDevice::_fd, gnash::InputDevice::_filespec, gnash::InputDevice::_type, and gnash::InputDevice::TOUCHSCREEN.
|
static |
Reimplemented from gnash::InputDevice.
References _, gnash::key::i, TouchDevice(), gnash::InputDevice::TOUCHSCREEN, and gnash::InputDevice::UNKNOWN.