#include <baseinputcomponent.h>

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. | |
This class is used internally by the BaseInputComponent for handling keyboard events in a Game Manager app using the GameEntryPoint
| dtGame::InputComponentKeyboardListener::InputComponentKeyboardListener | ( | dtGame::BaseInputComponent & | inputComp | ) |
Constructor.
| virtual dtGame::InputComponentKeyboardListener::~InputComponentKeyboardListener | ( | ) | [inline, protected, virtual] |
Destructor.
| virtual bool dtGame::InputComponentKeyboardListener::HandleKeyPressed | ( | const dtCore::Keyboard * | keyboard, | |
| int | kc | |||
| ) | [inline, virtual] |
Called when a key is pressed.
| keyboard | the source of the event | |
| key | the key pressed | |
| character | the corresponding character |
Implements dtCore::KeyboardListener.
| virtual bool dtGame::InputComponentKeyboardListener::HandleKeyReleased | ( | const dtCore::Keyboard * | keyboard, | |
| int | kc | |||
| ) | [inline, virtual] |
Called when a key is released.
| keyboard | the source of the event | |
| key | the key released |
Implements dtCore::KeyboardListener.
| virtual bool dtGame::InputComponentKeyboardListener::HandleKeyTyped | ( | const dtCore::Keyboard * | keyboard, | |
| int | kc | |||
| ) | [inline, virtual] |
Called when a key is typed.
| keyboard | the source of the event | |
| key | the key typed |
Implements dtCore::KeyboardListener.