#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 | ( | ) |
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::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::gnashSleep(), and gnash::amf::write().
Referenced by init().
| bool gnash::MouseDevice::init | ( | const std::string & | filespec, | |
| size_t | size | |||
| ) | [virtual] |
Implements gnash::InputDevice.
References _, gnash::InputDevice::_buffer, gnash::InputDevice::_fd, gnash::InputDevice::_filespec, gnash::InputDevice::_type, ogl::close(), command(), errno, gnash::InputDevice::MOUSE, and ogl::open().
| bool gnash::MouseDevice::init | ( | ) | [virtual] |
Reimplemented from gnash::InputDevice.
| std::vector< boost::shared_ptr< InputDevice > > gnash::MouseDevice::scanForDevices | ( | Gui * | gui | ) | [static] |
Reimplemented from gnash::InputDevice.
References ogl::close(), gnash::key::i, MouseDevice(), ogl::open(), and gnash::InputDevice::UNKNOWN.
1.7.1