dtGUI::CEGUIKeyboardListener Class Reference

#include <ceguikeyboardlistener.h>

Inheritance diagram for dtGUI::CEGUIKeyboardListener:

dtCore::KeyboardListener

List of all members.

Public Member Functions

 CEGUIKeyboardListener ()
bool HandleKeyPressed (const dtCore::Keyboard *keyboard, int key)
 Called when a key is pressed.
bool HandleKeyReleased (const dtCore::Keyboard *keyboard, int key)
 Called when a key is released.
bool HandleKeyTyped (const dtCore::Keyboard *keyboard, int key)

Static Public Member Functions

static CEGUI::Key::Scan KeyboardKeyToKeyScan (int key)
 Determines the CEGUI scancode that corresponds to the specified Producer::KeyboardKey.

Protected Member Functions

virtual ~CEGUIKeyboardListener ()


Constructor & Destructor Documentation

CEGUIKeyboardListener::CEGUIKeyboardListener (  ) 

CEGUIKeyboardListener::~CEGUIKeyboardListener (  )  [protected, virtual]


Member Function Documentation

bool CEGUIKeyboardListener::HandleKeyPressed ( const dtCore::Keyboard keyboard,
int  kc 
) [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.

bool CEGUIKeyboardListener::HandleKeyReleased ( const dtCore::Keyboard keyboard,
int  kc 
) [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.

bool CEGUIKeyboardListener::HandleKeyTyped ( const dtCore::Keyboard keyboard,
int  key 
) [virtual]

Implements dtCore::KeyboardListener.

CEGUI::Key::Scan CEGUIKeyboardListener::KeyboardKeyToKeyScan ( int  key  )  [static]

Determines the CEGUI scancode that corresponds to the specified Producer::KeyboardKey.

Parameters:
key the key to map
Returns:
the corresponding CEGUI key scancode


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