Sirikata
Classes | Public Member Functions | Public Attributes | Private Member Functions | Private Attributes | Friends
Sirikata::Graphics::OgreSystemInputHandler Class Reference

#include <OgreSystemInputHandler.hpp>

Inheritance diagram for Sirikata::Graphics::OgreSystemInputHandler:
Collaboration diagram for Sirikata::Graphics::OgreSystemInputHandler:

List of all members.

Classes

class  DelegateInputListener
class  WebViewInputListener

Public Member Functions

 OgreSystemInputHandler (OgreSystem *parent)
 ~OgreSystemInputHandler ()
void alert (const String &title, const String &text)
void tick (const Task::LocalTime &t)
void uiReady ()
void addDelegate (Invokable *del)
void removeDelegate (Invokable *del)
SpaceObjectReference pick (Vector2f p, int direction, const SpaceObjectReference &ignore, Vector3f *hitPointOut=NULL)
void ensureUI ()
void windowResized (uint32 w, uint32 h)

Public Attributes

WebViewmUIWidgetView

Private Member Functions

void delegateEvent (Sirikata::Input::InputEventPtr inputev)
Sirikata::Input::Modifier getCurrentModifiers () const
ProxyEntityhoverEntity (Camera *cam, Time time, float xPixel, float yPixel, bool mousedown, int *hitCount, int which=0, Vector3f *hitPointOut=NULL, SpaceObjectReference ignore=SpaceObjectReference::null())
bool recentMouseInRange (float x, float y, float *lastX, float *lastY)
void createUIAction (const String &ui_page)
 Create a UI element using a web view.
virtual Input::EventResponse onInputDeviceEvent (Input::InputDeviceEventPtr ev)
virtual Input::EventResponse onKeyPressedEvent (Input::ButtonPressedPtr ev)
virtual Input::EventResponse onKeyRepeatedEvent (Input::ButtonRepeatedPtr ev)
virtual Input::EventResponse onKeyReleasedEvent (Input::ButtonReleasedPtr ev)
virtual Input::EventResponse onKeyDownEvent (Input::ButtonDownPtr ev)
virtual Input::EventResponse onAxisEvent (Input::AxisEventPtr ev)
virtual Input::EventResponse onTextInputEvent (Input::TextInputEventPtr ev)
virtual Input::EventResponse onMouseHoverEvent (Input::MouseHoverEventPtr ev)
virtual Input::EventResponse onMousePressedEvent (Input::MousePressedEventPtr ev)
virtual Input::EventResponse onMouseReleasedEvent (Input::MouseReleasedEventPtr ev)
virtual Input::EventResponse onMouseClickEvent (Input::MouseClickEventPtr ev)
virtual Input::EventResponse onMouseDragEvent (Input::MouseDragEventPtr ev)
virtual Input::EventResponse onWebViewEvent (Input::WebViewEventPtr ev)
void fpsUpdateTick (const Task::LocalTime &t)
void renderStatsUpdateTick (const Task::LocalTime &t)
boost::any onUIAction (WebView *webview, const JSArguments &args)

Private Attributes

OgreSystemmParent
WebViewInputListener mWebViewInputListener
DelegateInputListener mDelegateInputListener
Input::InputEventCompletion mEventCompleter
int mWhichRayObject
int mLastHitCount
float mLastHitX
float mLastHitY
Task::LocalTime mLastCameraTime
Task::LocalTime mLastFpsTime
Task::LocalTime mLastRenderStatsTime
bool mUIReady

Friends

class WebViewInputListener
class DelegateInputListener

Constructor & Destructor Documentation

Sirikata::Graphics::OgreSystemInputHandler::OgreSystemInputHandler ( OgreSystem parent)
Sirikata::Graphics::OgreSystemInputHandler::~OgreSystemInputHandler ( )

Member Function Documentation

void Sirikata::Graphics::OgreSystemInputHandler::addDelegate ( Invokable del)
void Sirikata::Graphics::OgreSystemInputHandler::alert ( const String &  title,
const String &  text 
)
void Sirikata::Graphics::OgreSystemInputHandler::createUIAction ( const String &  ui_page) [private]
void Sirikata::Graphics::OgreSystemInputHandler::delegateEvent ( Sirikata::Input::InputEventPtr  inputev) [private]
void Sirikata::Graphics::OgreSystemInputHandler::ensureUI ( )
void Sirikata::Graphics::OgreSystemInputHandler::fpsUpdateTick ( const Task::LocalTime t) [private]

References Sirikata::Task::DeltaTime::toSeconds().

Referenced by tick().

Input::Modifier Sirikata::Graphics::OgreSystemInputHandler::getCurrentModifiers ( ) const [private]
ProxyEntity * Sirikata::Graphics::OgreSystemInputHandler::hoverEntity ( Camera cam,
Time  time,
float  xPixel,
float  yPixel,
bool  mousedown,
int *  hitCount,
int  which = 0,
Vector3f *  hitPointOut = NULL,
SpaceObjectReference  ignore = SpaceObjectReference::null() 
) [private]
EventResponse Sirikata::Graphics::OgreSystemInputHandler::onAxisEvent ( Input::AxisEventPtr  ev) [private, virtual]
EventResponse Sirikata::Graphics::OgreSystemInputHandler::onInputDeviceEvent ( Input::InputDeviceEventPtr  ev) [private, virtual]
EventResponse Sirikata::Graphics::OgreSystemInputHandler::onKeyDownEvent ( Input::ButtonDownPtr  ev) [private, virtual]
EventResponse Sirikata::Graphics::OgreSystemInputHandler::onKeyPressedEvent ( Input::ButtonPressedPtr  ev) [private, virtual]
EventResponse Sirikata::Graphics::OgreSystemInputHandler::onKeyReleasedEvent ( Input::ButtonReleasedPtr  ev) [private, virtual]
EventResponse Sirikata::Graphics::OgreSystemInputHandler::onKeyRepeatedEvent ( Input::ButtonRepeatedPtr  ev) [private, virtual]
EventResponse Sirikata::Graphics::OgreSystemInputHandler::onMouseClickEvent ( Input::MouseClickEventPtr  ev) [private, virtual]
EventResponse Sirikata::Graphics::OgreSystemInputHandler::onMouseDragEvent ( Input::MouseDragEventPtr  ev) [private, virtual]
EventResponse Sirikata::Graphics::OgreSystemInputHandler::onMouseHoverEvent ( Input::MouseHoverEventPtr  ev) [private, virtual]
EventResponse Sirikata::Graphics::OgreSystemInputHandler::onMousePressedEvent ( Input::MousePressedEventPtr  ev) [private, virtual]
EventResponse Sirikata::Graphics::OgreSystemInputHandler::onMouseReleasedEvent ( Input::MouseReleasedEventPtr  ev) [private, virtual]
EventResponse Sirikata::Graphics::OgreSystemInputHandler::onTextInputEvent ( Input::TextInputEventPtr  ev) [private, virtual]
boost::any Sirikata::Graphics::OgreSystemInputHandler::onUIAction ( WebView webview,
const JSArguments args 
) [private]
EventResponse Sirikata::Graphics::OgreSystemInputHandler::onWebViewEvent ( Input::WebViewEventPtr  ev) [private, virtual]
SpaceObjectReference Sirikata::Graphics::OgreSystemInputHandler::pick ( Vector2f  p,
int  direction,
const SpaceObjectReference ignore,
Vector3f *  hitPointOut = NULL 
)
bool Sirikata::Graphics::OgreSystemInputHandler::recentMouseInRange ( float  x,
float  y,
float lastX,
float lastY 
) [private]
void Sirikata::Graphics::OgreSystemInputHandler::removeDelegate ( Invokable del)
void Sirikata::Graphics::OgreSystemInputHandler::renderStatsUpdateTick ( const Task::LocalTime t) [private]

References Sirikata::Task::DeltaTime::toSeconds().

Referenced by tick().

void Sirikata::Graphics::OgreSystemInputHandler::tick ( const Task::LocalTime t)
void Sirikata::Graphics::OgreSystemInputHandler::uiReady ( )
void Sirikata::Graphics::OgreSystemInputHandler::windowResized ( uint32  w,
uint32  h 
)

Friends And Related Function Documentation

friend class DelegateInputListener [friend]
friend class WebViewInputListener [friend]

Member Data Documentation

Referenced by addDelegate(), and removeDelegate().

Referenced by OgreSystemInputHandler().

Referenced by OgreSystemInputHandler().

Referenced by OgreSystemInputHandler().

Referenced by tick(), and uiReady().


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