dtGame::InputComponentKeyboardListener Class Reference

Implementation of KeyboardListener. More...

#include <baseinputcomponent.h>

Inheritance diagram for dtGame::InputComponentKeyboardListener:

dtCore::KeyboardListener

List of all members.

Public Member Functions

 InputComponentKeyboardListener (dtGame::BaseInputComponent &inputComp)
 Constructor.
virtual bool HandleKeyPressed (const dtCore::Keyboard *keyboard, int key)
 Called when a key is pressed.
virtual bool HandleKeyReleased (const dtCore::Keyboard *keyboard, int key)
 Called when a key is released.
virtual bool HandleKeyTyped (const dtCore::Keyboard *keyboard, int key)
 Called when a key is typed.

Protected Member Functions

virtual ~InputComponentKeyboardListener ()
 Destructor.


Detailed Description

Implementation of KeyboardListener.

This class is used internally by the BaseInputComponent for handling keyboard events in a Game Manager app using the GameEntryPoint

See also:
BaseInputComponent

GameEntryPoint


Constructor & Destructor Documentation

dtGame::InputComponentKeyboardListener::InputComponentKeyboardListener ( dtGame::BaseInputComponent inputComp  ) 

Constructor.

virtual dtGame::InputComponentKeyboardListener::~InputComponentKeyboardListener (  )  [inline, protected, virtual]

Destructor.


Member Function Documentation

virtual bool dtGame::InputComponentKeyboardListener::HandleKeyPressed ( const dtCore::Keyboard keyboard,
int  kc 
) [inline, virtual]

Called when a key is pressed.

Parameters:
keyboard the source of the event
key the key pressed
character the corresponding character
Returns:
true if this KeyboardListener handled the event. The Keyboard calling this function is responsbile for using this return value or not.

Implements dtCore::KeyboardListener.

virtual bool dtGame::InputComponentKeyboardListener::HandleKeyReleased ( const dtCore::Keyboard keyboard,
int  kc 
) [inline, virtual]

Called when a key is released.

Parameters:
keyboard the source of the event
key the key released
Returns:
true if this KeyboardListener handled the event. The Keyboard calling this function is responsbile for using this return value or not.

Implements dtCore::KeyboardListener.

virtual bool dtGame::InputComponentKeyboardListener::HandleKeyTyped ( const dtCore::Keyboard keyboard,
int  kc 
) [inline, virtual]

Called when a key is typed.

Parameters:
keyboard the source of the event
key the key typed
Returns:
true if this KeyboardListener handled the event. The Keyboard calling this function is responsbile for using this return value or not.

Implements dtCore::KeyboardListener.


http://www.delta3d.org
2.0.0 generated 14 Feb 2008