![]() |
Dragonfly 4.22
A text-based game engine
|

Public Member Functions | |
| bool | isValid (std::string event_type) const override |
| int | startUp () override |
| void | shutDown () override |
| void | getInput () const |
Public Member Functions inherited from df::Manager | |
| std::string | getType () const |
| virtual int | startUp () |
| virtual void | shutDown () |
| bool | isStarted () const |
| int | onEvent (const Event *p_event) const |
| int | registerInterest (Object *p_o, std::string event_type) |
| int | unregisterInterest (Object *p_o, std::string event_type) |
Static Public Member Functions | |
| static InputManager & | getInstance () |
Private Member Functions | |
| InputManager () | |
| InputManager (InputManager const &) | |
| void | operator= (InputManager const &) |
Additional Inherited Members | |
Protected Member Functions inherited from df::Manager | |
| void | setType (std::string new_type) |
|
private |
Private since a singleton.
|
private |
Don't allow copy.
| void df::InputManager::getInput | ( | ) | const |
Get input from the keyboard and mouse.
Pass event along to all interested Objects.
|
static |
Get the one and only instance of the InputManager.
|
overridevirtual |
Input manager only accepts keyboard and mouse events.
Return false if not one of them.
Reimplemented from df::Manager.
|
private |
Don't allow assignment.
|
overridevirtual |
Revert back to normal window mode.
Reimplemented from df::Manager.
|
overridevirtual |