|
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 () |
Referenced by scanForDevices().
| bool gnash::MouseDevice::check | ( | ) | [virtual] |
Implements gnash::InputDevice.
References _, gnash::InputDevice::_input_data, gnash::InputDevice::_screen_height, gnash::InputDevice::_screen_width, gnash::InputDevice::_type, gnash::InputDevice::addData(), gnash::InputDevice::input_data_t::button, gnash::InputDevice::convertAbsCoords(), gnash::key::INVALID, gnash::InputDevice::MOUSE, gnash::InputDevice::readData(), gnash::InputDevice::TOUCHMOUSE, gnash::InputDevice::input_data_t::x, and gnash::InputDevice::input_data_t::y.
| 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(), gnash::key::n, and gnash::amf::write().
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::InputDevice::_fd, gnash::InputDevice::_filespec, gnash::InputDevice::_type, command(), GNASH_REPORT_FUNCTION, and gnash::InputDevice::MOUSE.
| std::vector< boost::shared_ptr< InputDevice > > gnash::MouseDevice::scanForDevices | ( | ) | [static] |
Reimplemented from gnash::InputDevice.
References _, gnash::key::i, gnash::InputDevice::MOUSE, MouseDevice(), and gnash::InputDevice::UNKNOWN.
1.7.6.1