Gnash
0.8.11dev
|
#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. More... | |
![]() | |
InputDevice () | |
InputDevice (int x, int y) | |
virtual | ~InputDevice () |
bool | init (devicetype_e type) |
bool | init (devicetype_e type, size_t size) |
bool | init (devicetype_e type, const std::string &filespec) |
bool | init (devicetype_e type, const std::string &filespec, size_t size) |
InputDevice::devicetype_e | getType () |
void | setType (InputDevice::devicetype_e x) |
std::unique_ptr< std::uint8_t[]> | readData (size_t size) |
std::shared_ptr< input_data_t > | popData () |
void | setScreenSize (int x, int y) |
void | dump () const |
Static Public Member Functions | |
static std::vector< std::shared_ptr< InputDevice > > | scanForDevices () |
![]() | |
static DSOEXPORT std::vector< std::shared_ptr< InputDevice > > | scanForDevices () |
static DSOEXPORT std::unique_ptr< int[]> | convertAbsCoords (int x, int y, int width, int height) |
Additional Inherited Members | |
![]() | |
enum | devicetype_e { UNKNOWN, KEYBOARD, UMOUSE, MOUSE, TABLET, TOUCHSCREEN, TOUCHMOUSE, POWERBUTTON, SLEEPBUTTON, SERIALUSB, INFRARED, UINPUT, TSLIB } |
![]() | |
void | addData (bool pressed, key::code key, int modifier, int x, int y) |
![]() | |
devicetype_e | _type |
std::string | _filespec |
int | _fd |
input_data_t | _input_data |
std::unique_ptr< std::uint8_t[]> | _buffer |
std::queue< std::shared_ptr< input_data_t > > | _data |
int | _screen_width |
int | _screen_height |
gnash::MouseDevice::MouseDevice | ( | ) |
Referenced by scanForDevices().
gnash::MouseDevice::~MouseDevice | ( | ) |
|
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::log_debug(), gnash::log_error(), 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::log_debug(), gnash::key::n, and gnash::amf::write().
Referenced by init().
|
inlinevirtual |
Implements gnash::InputDevice.
|
virtual |
Reimplemented from gnash::InputDevice.
|
virtual |
|
static |
References _, gnash::key::i, gnash::log_debug(), gnash::log_error(), gnash::InputDevice::MOUSE, MouseDevice(), and gnash::InputDevice::UNKNOWN.
Referenced by gnash::InputDevice::scanForDevices().