Orxonox
0.0.5 Codename: Arcturus
|
Wraps around an OIS::Mouse and forwards the input events to a list of input states. More...
#include </home/jenkins/workspace/orxonox_doxygen_trunk/src/libraries/core/input/Keyboard.h>
Public Member Functions | |
Keyboard (unsigned int id, OIS::InputManager *oisInputManager) | |
Only resets the keyboard modifiers. Initialising is done in the base class. More... | |
~Keyboard ()=default | |
Public Member Functions inherited from orxonox::InputDeviceTemplated< KeyboardTraits > | |
InputDeviceTemplated (unsigned int id, OIS::InputManager *oisInputManager) | |
Creates the OIS device. More... | |
virtual | ~InputDeviceTemplated () |
Destroys the OIS device. More... | |
virtual void | clearBuffers () override |
Clears the list of pressed buttons and calls the derived class's method. More... | |
virtual std::string | getClassName () const override |
Returns the device class (derived) name as string. More... | |
OISDeviceClass * | getOISDevice () |
virtual void | update (const Clock &time) override |
Captures OIS events (which then get distributed to the derived class) and creates the button held events. More... | |
Public Member Functions inherited from orxonox::InputDevice | |
InputDevice (unsigned int id) | |
Only resets the members. More... | |
virtual | ~InputDevice ()=default |
unsigned int | getDeviceID () const |
Returns the ID of the device (the same as in InputDeviceEnumerator for mouse and keyboard) More... | |
std::vector< InputState * > & | getStateListRef () |
Returns a reference to the internal input state vector. Use with care! More... | |
bool | isCalibrating () const |
Tells whether the device is in calibration mode. More... | |
void | startCalibration () |
Start calibrating (only useful for joy sticks) More... | |
void | stopCalibration () |
Stop calibrating and evaluate the data (only useful for joy sticks) More... | |
Public Member Functions inherited from OIS::KeyListener | |
virtual | ~KeyListener () |
Private Types | |
typedef InputDeviceTemplated< KeyboardTraits > | super |
Super class alias. More... | |
Private Member Functions | |
void | clearBuffersImpl () |
Resets the keyboard modifiers. More... | |
KeyEvent & | getButtonEventArg (KeyEvent &button) |
Translates the KeyHandle to a KeyEvent. More... | |
virtual bool | keyPressed (const OIS::KeyEvent &arg) override |
OIS event handler. More... | |
virtual bool | keyReleased (const OIS::KeyEvent &arg) override |
OIS event handler. More... | |
Static Private Member Functions | |
static std::string | getClassNameImpl () |
Returns the class name as string. More... | |
static unsigned int | getKeyText (const OIS::KeyEvent &arg) |
A map which returns the corresponding chars for some key codes. More... | |
Private Attributes | |
int | modifiers_ |
Bit mask representing keyboard modifiers. More... | |
Friends | |
class | InputDeviceTemplated< KeyboardTraits > |
Additional Inherited Members | |
Protected Member Functions inherited from orxonox::InputDeviceTemplated< KeyboardTraits > | |
ORX_FORCEINLINE void | buttonPressed (ButtonTypeParam button) |
Common code for all button pressed events (updates pressed buttons list and calls the input states) More... | |
ORX_FORCEINLINE void | buttonReleased (ButtonTypeParam button) |
Common code for all button released events (updates pressed buttons list and calls the input states) More... | |
Protected Member Functions inherited from orxonox::InputDevice | |
virtual void | calibrationStarted () |
To be ovrridden by the subclass. More... | |
virtual void | calibrationStopped () |
To be ovrridden by the subclass. More... | |
Protected Attributes inherited from orxonox::InputDeviceTemplated< KeyboardTraits > | |
OISDeviceClass * | oisDevice_ |
Managed pointer to the OIS device. More... | |
Protected Attributes inherited from orxonox::InputDevice | |
std::vector< InputState * > | inputStates_ |
List of all input states that receive events from this device. More... | |
Wraps around an OIS::Mouse and forwards the input events to a list of input states.
It also saves the state of the keyboard modifiers (like shift, etc.)
|
private |
Super class alias.
|
inline |
Only resets the keyboard modifiers. Initialising is done in the base class.
|
default |
|
inlineprivate |
Resets the keyboard modifiers.
Translates the KeyHandle to a KeyEvent.
|
inlinestaticprivate |
Returns the class name as string.
|
staticprivate |
A map which returns the corresponding chars for some key codes.
|
overrideprivatevirtual |
OIS event handler.
Implements OIS::KeyListener.
|
overrideprivatevirtual |
OIS event handler.
Implements OIS::KeyListener.
|
friend |
|
private |
Bit mask representing keyboard modifiers.