Claypool

Courses

Publications

Students

Projects

Service

Downloads

Misc


Dragonfly: InputManager Class Reference
Dragonfly 2.2
A text-based game engine
Public Member Functions | Static Public Member Functions | Private Member Functions

InputManager Class Reference

The input manager. More...

#include <InputManager.h>

Inheritance diagram for InputManager:
Manager

List of all members.

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 InputManagergetInstance ()
 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.

Detailed Description

The input manager.


Member Function Documentation

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.


The documentation for this class was generated from the following file:
 All Classes Functions Variables Friends