Sirikata
Public Types | Public Member Functions | Private Types | Private Attributes
Sirikata::SimpleCamera::InputBinding Class Reference

#include <InputBinding.hpp>

Collaboration diagram for Sirikata::SimpleCamera::InputBinding:

List of all members.

Public Types

typedef std::map< String,
InputResponse * > 
InputResponseMap

Public Member Functions

 InputBinding ()
 ~InputBinding ()
void add (const InputBindingEvent &evt, InputResponse *response)
void addFromFile (const String &filename, InputResponseMap responses)
 Add bindings by loading them from an options file.
bool handle (InputBindingEvent &evt)

Private Types

typedef std::map
< InputBindingEvent,
InputResponse * > 
Binding

Private Attributes

Binding mResponses

Member Typedef Documentation


Constructor & Destructor Documentation

Sirikata::SimpleCamera::InputBinding::InputBinding ( )
Sirikata::SimpleCamera::InputBinding::~InputBinding ( )

Member Function Documentation

void Sirikata::SimpleCamera::InputBinding::add ( const InputBindingEvent evt,
InputResponse response 
)
void Sirikata::SimpleCamera::InputBinding::addFromFile ( const String &  filename,
InputResponseMap  responses 
)

Add bindings by loading them from an options file.

Parameters:
filenamename of file to load from.
responsesmap from strings, which are specified in the configuration file, to InputResponses.

References add(), Sirikata::Logging::error, Sirikata::SimpleCamera::InputBindingEvent::fromString(), and SILOG.

Referenced by Sirikata::SimpleCamera::SimpleCameraObjectScript::SimpleCameraObjectScript().

bool Sirikata::SimpleCamera::InputBinding::handle ( InputBindingEvent evt)

Member Data Documentation

Referenced by add(), and handle().


The documentation for this class was generated from the following files: