#include <InputDevice.h>
Public Member Functions | |
TouchDevice () | |
TouchDevice (Gui *gui) | |
virtual | ~TouchDevice () |
virtual bool | init () |
virtual bool | init (const std::string &filespec, size_t size) |
virtual bool | check () |
void | apply_ts_calibration (float *cx, float *cy, int rawx, int rawy) |
Static Public Member Functions | |
static std::vector < boost::shared_ptr < InputDevice > > | scanForDevices (Gui *gui) |
gnash::TouchDevice::TouchDevice | ( | ) |
Referenced by scanForDevices().
gnash::TouchDevice::TouchDevice | ( | Gui * | gui | ) |
References gnash::InputDevice::_gui.
gnash::TouchDevice::~TouchDevice | ( | ) | [virtual] |
void gnash::TouchDevice::apply_ts_calibration | ( | float * | cx, | |
float * | cy, | |||
int | rawx, | |||
int | rawy | |||
) |
initialized
References _, gnash::InputDevice::_gui, s2x::c, s2x::d, s2x::f, gnash::Gui::getStage(), gnash::movie_root::getStageHeight(), and gnash::movie_root::getStageWidth().
bool gnash::TouchDevice::check | ( | ) | [virtual] |
bool gnash::TouchDevice::init | ( | const std::string & | filespec, | |
size_t | size | |||
) | [virtual] |
Implements gnash::InputDevice.
References gnash::InputDevice::_filespec, gnash::InputDevice::_type, and errno.
bool gnash::TouchDevice::init | ( | ) | [virtual] |
Reimplemented from gnash::InputDevice.
std::vector< boost::shared_ptr< InputDevice > > gnash::TouchDevice::scanForDevices | ( | Gui * | gui | ) | [static] |
Reimplemented from gnash::InputDevice.
References ogl::close(), gnash::key::i, ogl::open(), TouchDevice(), and gnash::InputDevice::UNKNOWN.