Gnash  0.8.10
Public Member Functions | Static Public Member Functions
gnash::MouseDevice Class Reference

#include <InputDevice.h>

Inheritance diagram for gnash::MouseDevice:
gnash::InputDevice

List of all members.

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 ()

Constructor & Destructor Documentation

gnash::MouseDevice::MouseDevice ( )

Referenced by scanForDevices().

gnash::MouseDevice::~MouseDevice ( )

Member Function Documentation

bool gnash::MouseDevice::check ( ) [virtual]
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]
std::vector< boost::shared_ptr< InputDevice > > gnash::MouseDevice::scanForDevices ( ) [static]

The documentation for this class was generated from the following files: