Sirikata
|
#include <InputResponse.hpp>
Public Types | |
typedef std::tr1::function < void(float)> | ResponseCallback |
Public Member Functions | |
FloatToggleInputResponse (ResponseCallback cb, float onval, float offval) | |
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 |
float | mOnValue |
float | mOffValue |
typedef std::tr1::function<void(float)> Sirikata::SimpleCamera::FloatToggleInputResponse::ResponseCallback |
Sirikata::SimpleCamera::FloatToggleInputResponse::FloatToggleInputResponse | ( | ResponseCallback | cb, |
float | onval, | ||
float | offval | ||
) |
InputResponse::InputEventDescriptorList Sirikata::SimpleCamera::FloatToggleInputResponse::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::isKey(), Sirikata::SimpleCamera::InputBindingEvent::isWeb(), Sirikata::SimpleCamera::InputBindingEvent::Key(), Sirikata::SimpleCamera::InputBindingEvent::keyButton(), Sirikata::SimpleCamera::InputBindingEvent::keyModifiers(), Sirikata::SimpleCamera::InputBindingEvent::Web(), Sirikata::SimpleCamera::InputBindingEvent::webName(), and Sirikata::SimpleCamera::InputBindingEvent::webViewName().
void Sirikata::SimpleCamera::FloatToggleInputResponse::invoke | ( | InputBindingEvent & | evt | ) | [virtual] |
Invokes the input response for any type of InputEvent.
Reimplemented from Sirikata::SimpleCamera::InputResponse.
References Sirikata::SimpleCamera::InputBindingEvent::isKey(), Sirikata::SimpleCamera::InputBindingEvent::keyPressed(), Sirikata::SimpleCamera::InputBindingEvent::keyReleased(), mCallback, mOffValue, and mOnValue.
Referenced by invoke().
Referenced by invoke().
Referenced by invoke().