Gnash 0.8.10dev
|
#include <InputDevice.h>
Public Member Functions | |
MouseDevice () | |
MouseDevice (Gui *gui) | |
virtual bool | init () |
virtual bool | init (const std::string &filespec, size_t size) |
virtual 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 (Gui *gui) |
gnash::MouseDevice::MouseDevice | ( | ) |
References GNASH_REPORT_FUNCTION.
Referenced by scanForDevices().
gnash::MouseDevice::MouseDevice | ( | Gui * | gui | ) |
References gnash::InputDevice::_gui.
bool gnash::MouseDevice::check | ( | ) | [virtual] |
Implements gnash::InputDevice.
References _, gnash::InputDevice::_button, gnash::InputDevice::_fd, gnash::InputDevice::_gui, gnash::InputDevice::_type, gnash::InputDevice::_x, gnash::InputDevice::_y, gnash::Gui::getStage(), gnash::movie_root::getStageHeight(), gnash::movie_root::getStageWidth(), GNASH_REPORT_FUNCTION, gnash::Gui::notifyMouseClick(), gnash::Gui::notifyMouseMove(), gnash::InputDevice::readData(), and gnash::InputDevice::TOUCHMOUSE.
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::InputDevice::_fd, GNASH_REPORT_FUNCTION, gnash::gnashSleep(), gnash::key::n, and gnash::amf::write().
Referenced by init().
bool gnash::MouseDevice::init | ( | const std::string & | filespec, |
size_t | size | ||
) | [virtual] |
bool gnash::MouseDevice::init | ( | ) | [virtual] |
Reimplemented from gnash::InputDevice.
References GNASH_REPORT_FUNCTION.
std::vector< boost::shared_ptr< InputDevice > > gnash::MouseDevice::scanForDevices | ( | Gui * | gui | ) | [static] |
Reimplemented from gnash::InputDevice.
References gnash::key::i, gnash::InputDevice::MOUSE, MouseDevice(), and gnash::InputDevice::UNKNOWN.