![]() |
Dragonfly 2.2
A text-based game engine
|
The input manager. More...
#include <InputManager.h>
Public Member Functions | |
| bool | isValid (string event_name) |
| Input manager only accepts keyboard and mouse events. | |
| int | startUp () |
| Get terminal ready to capture input. Return 0 if ok, else negative num1. | |
| void | shutDown () |
| Revert back to normal terminal mode. | |
| void | getInput () |
| Get input from the keyboard and mouse. | |
Static Public Member Functions | |
| static InputManager & | getInstance () |
| Get the one and only instance of the GraphicsManager. | |
Private Member Functions | |
| InputManager () | |
| Private since a singleton. | |
| InputManager (InputManager const &) | |
| Don't allow copy. | |
| void | operator= (InputManager const &) |
| Don't allow assignment. | |
The input manager.
| void InputManager::getInput | ( | ) |
Get input from the keyboard and mouse.
For each object interested, pass event along.
| bool InputManager::isValid | ( | string | event_name | ) | [virtual] |
Input manager only accepts keyboard and mouse events.
Return false if not one of them.
Reimplemented from Manager.
1.7.3