Sirikata
|
#include <InputResponse.hpp>
Public Types | |
typedef std::tr1::function < void(float)> | ResponseCallback |
Public Member Functions | |
AxisInputResponse (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(float)> Sirikata::SimpleCamera::AxisInputResponse::ResponseCallback |
Sirikata::SimpleCamera::AxisInputResponse::AxisInputResponse | ( | ResponseCallback | cb | ) |
InputResponse::InputEventDescriptorList Sirikata::SimpleCamera::AxisInputResponse::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::Axis(), Sirikata::SimpleCamera::InputBindingEvent::axisIndex(), and Sirikata::SimpleCamera::InputBindingEvent::isAxis().
void Sirikata::SimpleCamera::AxisInputResponse::invoke | ( | InputBindingEvent & | evt | ) | [virtual] |
Invokes the input response for any type of InputEvent.
Reimplemented from Sirikata::SimpleCamera::InputResponse.
References Sirikata::SimpleCamera::InputBindingEvent::axisValue(), Sirikata::SimpleCamera::InputBindingEvent::isAxis(), and mCallback.
Referenced by invoke().