Home | Namespaces | Hierarchy | Alphabetical List | Class list | Files | Namespace Members | Class members | File members |
A common base class for keyboard device. More...
#include <Keyboard.h>
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 () | |
Constructor. | |
void | removeKeyEventReceiver (input::KeyEventReceiver *oldEventReceiver) |
virtual | ~Keyboard () |
Destructor. | |
Protected Member Functions | |
void | initProperties () |
Protected Attributes | |
KeyEvent * | mEvent |
std::list < input::KeyEventReceiver * > | mKeyEventReceivers |
u32 | mModifiers |
Bit field that holds status of Alt, Ctrl, Shift. |
A common base class for keyboard device.
input::Keyboard::Keyboard | ( | ) |
Constructor.
References initProperties(), input::IT_KEYBOARD, and input::InputDevice::mInputType.
input::Keyboard::~Keyboard | ( | ) | [virtual] |
Destructor.
References mEvent.
void input::Keyboard::addKeyEventReceiver | ( | input::KeyEventReceiver * | newEventReceiver | ) |
References mKeyEventReceivers.
void input::Keyboard::initProperties | ( | ) | [protected] |
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.
KeyEvent* input::Keyboard::mEvent [protected] |
Referenced by initProperties(), and ~Keyboard().
std::list<input::KeyEventReceiver*> input::Keyboard::mKeyEventReceivers [protected] |
Referenced by addKeyEventReceiver(), and removeKeyEventReceiver().
u32 input::Keyboard::mModifiers [protected] |
Bit field that holds status of Alt, Ctrl, Shift.
Referenced by isModifierDown().
The KG Game Engine
Documentation © 2006-2011 by Kat'Oun. Generated on Sat Jul 2 2011 00:50:07 by
Doxygen
(1.7.4)
|