Sirikata
|
#include <InputResponse.hpp>
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 |
typedef std::tr1::function<void(Vector2f)> Sirikata::SimpleCamera::Vector2fInputResponse::ResponseCallback |
Sirikata::SimpleCamera::Vector2fInputResponse::Vector2fInputResponse | ( | ResponseCallback | cb | ) |
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] |
Invokes the input response for any type of InputEvent.
Reimplemented from Sirikata::SimpleCamera::InputResponse.
References Sirikata::SimpleCamera::InputBindingEvent::isMouseClick(), Sirikata::SimpleCamera::InputBindingEvent::isMouseDrag(), mCallback, Sirikata::SimpleCamera::InputBindingEvent::mouseX(), and Sirikata::SimpleCamera::InputBindingEvent::mouseY().
Referenced by invoke().