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

#include <InputResponse.hpp>

Inheritance diagram for Sirikata::SimpleCamera::Vector2fInputResponse:
Collaboration diagram for Sirikata::SimpleCamera::Vector2fInputResponse:

List of all members.

Public Types

typedef std::tr1::function
< void(Vector2f)> 
ResponseCallback

Public Member Functions

 Vector2fInputResponse (ResponseCallback cb)
virtual void invoke (InputBindingEvent &evt)
 Invokes the input response for any type of InputEvent.
virtual InputEventDescriptorList getInputEvents (const InputBindingEvent &descriptor) const
 Get a list of InputEventDescriptors which specify the events that this response will handle, given a higher level description of the input to bind to this response.

Private Attributes

ResponseCallback mCallback

Member Typedef Documentation

typedef std::tr1::function<void(Vector2f)> Sirikata::SimpleCamera::Vector2fInputResponse::ResponseCallback

Constructor & Destructor Documentation

Sirikata::SimpleCamera::Vector2fInputResponse::Vector2fInputResponse ( ResponseCallback  cb)

Member Function Documentation

InputResponse::InputEventDescriptorList Sirikata::SimpleCamera::Vector2fInputResponse::getInputEvents ( const InputBindingEvent descriptor) const [virtual]

Get a list of InputEventDescriptors which specify the events that this response will handle, given a higher level description of the input to bind to this response.

Implements Sirikata::SimpleCamera::InputResponse.

References Sirikata::SimpleCamera::InputBindingEvent::isMouseClick(), Sirikata::SimpleCamera::InputBindingEvent::MouseClick(), and Sirikata::SimpleCamera::InputBindingEvent::mouseClickButton().

void Sirikata::SimpleCamera::Vector2fInputResponse::invoke ( InputBindingEvent evt) [virtual]

Member Data Documentation

Referenced by invoke().


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