Gnash
0.8.10
|
#include <InputDevice.h>
Public Member Functions | |
MouseDevice () | |
~MouseDevice () | |
const char * | id () |
bool | init () |
bool | init (const std::string &filespec, size_t size) |
bool | check () |
bool | command (unsigned char cmd, unsigned char *buf, int count) |
Sends a command to the mouse and waits for the response. | |
Static Public Member Functions | |
static std::vector < boost::shared_ptr < InputDevice > > | scanForDevices () |
gnash::MouseDevice::MouseDevice | ( | ) |
Referenced by scanForDevices().
gnash::MouseDevice::~MouseDevice | ( | ) |
bool gnash::MouseDevice::check | ( | ) | [virtual] |
Implements gnash::InputDevice.
References gnash::InputDevice::_type, gnash::InputDevice::TOUCHMOUSE, gnash::InputDevice::readData(), gnash::InputDevice::MOUSE, _, gnash::InputDevice::_screen_width, gnash::InputDevice::_screen_height, gnash::InputDevice::_input_data, gnash::InputDevice::input_data_t::x, gnash::InputDevice::input_data_t::y, gnash::InputDevice::convertAbsCoords(), gnash::InputDevice::input_data_t::button, gnash::InputDevice::addData(), and gnash::key::INVALID.
bool gnash::MouseDevice::command | ( | unsigned char | cmd, |
unsigned char * | buf, | ||
int | count | ||
) |
Sends a command to the mouse and waits for the response.
References gnash::key::n, gnash::InputDevice::_fd, _, gnash::amf::write(), and gnash::gnashSleep().
Referenced by init().
const char* gnash::MouseDevice::id | ( | ) | [inline, virtual] |
Implements gnash::InputDevice.
bool gnash::MouseDevice::init | ( | ) | [virtual] |
Reimplemented from gnash::InputDevice.
bool gnash::MouseDevice::init | ( | const std::string & | filespec, |
size_t | size | ||
) | [virtual] |
Implements gnash::InputDevice.
References GNASH_REPORT_FUNCTION, gnash::InputDevice::_filespec, gnash::InputDevice::_fd, _, gnash::InputDevice::_type, gnash::InputDevice::MOUSE, and command().
std::vector< boost::shared_ptr< InputDevice > > gnash::MouseDevice::scanForDevices | ( | ) | [static] |
Reimplemented from gnash::InputDevice.
References gnash::InputDevice::MOUSE, gnash::InputDevice::UNKNOWN, gnash::key::i, _, and MouseDevice().