GlutCharKeyboardDevice Class Reference

#include <GlutCharKeyboardDevice.h>

Inherits InputDeviceBase.

Collaboration diagram for GlutCharKeyboardDevice:

List of all members.


Public Member Functions

 GlutCharKeyboardDevice ()
virtual ~GlutCharKeyboardDevice ()

Static Public Member Functions

static void cbGlutKeyboard (unsigned char k, int x, int y)
static void cbGlutKeyboardUp (unsigned char k, int x, int y)

Private Member Functions

void setButtonState (unsigned int buttonIndex, int value)

Static Private Attributes

static std::vector
< GlutCharKeyboardDevice * > 
activeDevices

Constructor & Destructor Documentation

GlutCharKeyboardDevice::GlutCharKeyboardDevice (  ) 

Constructor

GlutCharKeyboardDevice::~GlutCharKeyboardDevice (  )  [virtual]

Destructor


Member Function Documentation

void GlutCharKeyboardDevice::cbGlutKeyboard ( unsigned char  k,
int  x,
int  y 
) [static]

Static GLUT callback when key is pressed.

void GlutCharKeyboardDevice::cbGlutKeyboardUp ( unsigned char  k,
int  x,
int  y 
) [static]

Static GLUT callback when key is released.

void GlutCharKeyboardDevice::setButtonState ( unsigned int  buttonIndex,
int  value 
) [private]

Updates the internal button state


Member Data Documentation

List of all existing GlutCharKeyboardDevices. This list is needed when more than one GlutCharKeyboardDevice is used. The GLUT callback methods call the setButtonState method of each of the device in this list.


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

Generated on Wed Oct 20 16:11:56 2010 for inVRs by doxygen 1.5.8