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

A common base class for keyboard device. More...

#include <Keyboard.h>

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

List of all members.

Public Member Functions

void addKeyEventReceiver (input::KeyEventReceiver *newEventReceiver)
virtual bool isKeyDown (KeyCode key)=0
 Returns true if key is donwn.v.
bool isModifierDown (KeyModifier modifier)
 Check modifier status.
 Keyboard ()
void removeKeyEventReceiver (input::KeyEventReceiver *oldEventReceiver)
virtual ~Keyboard ()

Protected Member Functions

void initProperties ()

Protected Attributes

< input::KeyEventReceiver * > 
u32 mModifiers
 Bit field that holds status of Alt, Ctrl, Shift.

Detailed Description

A common base class for keyboard device.

Constructor & Destructor Documentation

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


References mEvent.

Member Function Documentation

void input::Keyboard::addKeyEventReceiver ( input::KeyEventReceiver newEventReceiver)

References mKeyEventReceivers.

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

Reimplemented from input::InputDevice.

References mEvent.

Referenced by Keyboard().

virtual bool input::Keyboard::isKeyDown ( KeyCode  key) [pure virtual]

Returns true if key is donwn.v.

bool input::Keyboard::isModifierDown ( KeyModifier  modifier)

Check modifier status.

References mModifiers.

void input::Keyboard::removeKeyEventReceiver ( input::KeyEventReceiver oldEventReceiver)

References mKeyEventReceivers.

Member Data Documentation

Referenced by initProperties(), and ~Keyboard().

Bit field that holds status of Alt, Ctrl, Shift.

Referenced by isModifierDown().

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)