Home | Namespaces | Hierarchy | Alphabetical List | Class list | Files | Namespace Members | Class members | File members
Public Member Functions | Protected Member Functions | Protected Attributes | Static Protected Attributes
input::InputDevice Class Reference

A common base class for input devices. More...

#include <InputDevice.h>

Inheritance diagram for input::InputDevice:
engine::Object input::Joystick input::Keyboard input::Mouse

List of all members.

Public Member Functions

bool getBuffered ()
 Get buffered mode - true is buffered, false otherwise.
InputType getInputType ()
 Get the type of device.
const std::string & getVendor () const
 Get the device vendor.
 InputDevice ()
 Constructor.
void setBuffered (bool buffered)
 Sets buffered mode.
virtual ~InputDevice ()
 Destructor.

Protected Member Functions

void initProperties ()
virtual void updateImpl (f32 elapsedTime)

Protected Attributes

bool mBuffered
InputType mInputType
std::string mVendor

Static Protected Attributes

static u32 msNextGeneratedInputDeviceIndex = 0
 Incremented count for next index.

Detailed Description

A common base class for input devices.


Constructor & Destructor Documentation

input::InputDevice::InputDevice ( )
input::InputDevice::~InputDevice ( ) [virtual]

Destructor.


Member Function Documentation

bool input::InputDevice::getBuffered ( )

Get buffered mode - true is buffered, false otherwise.

References mBuffered.

InputType input::InputDevice::getInputType ( )

Get the type of device.

References mInputType.

const std::string & input::InputDevice::getVendor ( ) const

Get the device vendor.

References mVendor.

void input::InputDevice::initProperties ( ) [protected]

Reimplemented in input::Joystick, input::Keyboard, and input::Mouse.

References mBuffered, mVendor, and core::STRING_BLANK.

Referenced by InputDevice().

void input::InputDevice::setBuffered ( bool  buffered)

Sets buffered mode.

References mBuffered.

void input::InputDevice::updateImpl ( f32  elapsedTime) [protected, virtual]

Reimplemented from engine::Object.


Member Data Documentation

Incremented count for next index.

std::string input::InputDevice::mVendor [protected]

Referenced by getVendor(), and initProperties().


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

The KG Game Engine
The KG Game Engine Documentation © 2006-2011 by Kat'Oun. Generated on Sat Jul 2 2011 00:50:07 by Doxygen (1.7.4)