Public Types | Public Member Functions | Static Public Member Functions | Protected Attributes

gnash::InputDevice Class Reference

#include <InputDevice.h>

Inheritance diagram for gnash::InputDevice:
Inheritance graph
[legend]
Collaboration diagram for gnash::InputDevice:
Collaboration graph
[legend]

List of all members.

Public Types

enum  devicetype_e {
  UNKNOWN, KEYBOARD, MOUSE, TOUCHSCREEN,
  TOUCHMOUSE, POWERBUTTON, SLEEPBUTTON, SERIALUSB,
  INFRARED
}

Public Member Functions

 InputDevice ()
 InputDevice (Gui *gui)
virtual ~InputDevice ()
virtual bool init ()
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)
virtual bool init (const std::string &filespec, size_t size)=0
virtual bool check ()=0
InputDevice::devicetype_e getType ()
boost::shared_array
< boost::uint8_t > 
readData (size_t size)
void dump ()

Static Public Member Functions

static std::vector
< boost::shared_ptr
< InputDevice > > 
scanForDevices (Gui *gui)

Protected Attributes

devicetype_e _type
std::string _filespec
int _fd
int _x
int _y
int _button
size_t _position
boost::scoped_array
< boost::uint8_t > 
_buffer
Gui_gui

Member Enumeration Documentation

Enumerator:
UNKNOWN 
KEYBOARD 
MOUSE 
TOUCHSCREEN 
TOUCHMOUSE 
POWERBUTTON 
SLEEPBUTTON 
SERIALUSB 
INFRARED 

Constructor & Destructor Documentation

gnash::InputDevice::InputDevice (  ) 
gnash::InputDevice::InputDevice ( Gui gui  ) 
gnash::InputDevice::~InputDevice (  )  [virtual]

Member Function Documentation

virtual bool gnash::InputDevice::check (  )  [pure virtual]
void gnash::InputDevice::dump (  ) 

References _fd, _filespec, _type, _x, and _y.

InputDevice::devicetype_e gnash::InputDevice::getType (  )  [inline]

References _type.

bool gnash::InputDevice::init ( InputDevice::devicetype_e  type  ) 

References init().

Referenced by init().

bool gnash::InputDevice::init ( devicetype_e  type,
const std::string &  filespec 
)
bool gnash::InputDevice::init ( InputDevice::devicetype_e  type,
size_t  size 
)

References init().

virtual bool gnash::InputDevice::init ( const std::string &  filespec,
size_t  size 
) [pure virtual]
bool gnash::InputDevice::init ( InputDevice::devicetype_e  type,
const std::string &  filespec,
size_t  size 
)

References _filespec, _type, and init().

bool gnash::InputDevice::init (  )  [virtual]

Reimplemented in gnash::MouseDevice, gnash::TouchDevice, and gnash::EventDevice.

Referenced by init().

boost::shared_array< boost::uint8_t > gnash::InputDevice::readData ( size_t  size  ) 

References _fd, errno, and gnash::hexify().

Referenced by gnash::MouseDevice::check().

std::vector< boost::shared_ptr< InputDevice > > gnash::InputDevice::scanForDevices ( Gui gui  )  [static]

Member Data Documentation

boost::scoped_array<boost::uint8_t> gnash::InputDevice::_buffer [protected]
int gnash::InputDevice::_button [protected]
int gnash::InputDevice::_fd [protected]
std::string gnash::InputDevice::_filespec [protected]
size_t gnash::InputDevice::_position [protected]
int gnash::InputDevice::_x [protected]

Referenced by gnash::MouseDevice::check(), and dump().

int gnash::InputDevice::_y [protected]

Referenced by gnash::MouseDevice::check(), and dump().


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