.. index:: pair: class; EE::Scene::EventDispatcher .. _doxid-class_e_e_1_1_scene_1_1_event_dispatcher: class EE::Scene::EventDispatcher ================================ .. toctree:: :hidden: .. ref-code-block:: cpp :class: doxyrest-overview-code-block #include class EventDispatcher { public: // typedefs typedef std::function`&cbId, :ref:`Node`*focus, :ref:`Node`*focusLoss)> :target:`FocusCallback`; // construction :target:`EventDispatcher`(:ref:`SceneNode`* sceneNode); virtual :target:`~EventDispatcher`(); // methods static EventDispatcher* :target:`New`(:ref:`SceneNode`* sceneNode); virtual void :target:`update`(const :ref:`Time`& elapsed); :ref:`Input`* :target:`getInput`() const; :ref:`Node`* :target:`getFocusNode`() const; void :target:`setFocusNode`(:ref:`Node`* node, :ref:`NodeFocusReason` reason = :ref:`NodeFocusReason::Unknown`); :ref:`Node`* :target:`getMouseOverNode`() const; void :target:`setMouseOverNode`(:ref:`Node`* node); :ref:`Node`* :target:`getMouseDownNode`() const; void :target:`resetMouseDownNode`(); :ref:`Node`* :target:`getLossFocusNode`() const; void :target:`sendMsg`(:ref:`Node`* node, const :ref:`Uint32`& Msg, const :ref:`Uint32`& Flags = 0); void :target:`sendTextInput`(const :ref:`Uint32`& textChar, const :ref:`Uint32`& timestamp); void :target:`sendTextEditing`(const :ref:`String`& text, const :ref:`Int32`& start, const :ref:`Int32`& length); void :target:`sendKeyUp`(const :ref:`Keycode`& keyCode, const :ref:`Scancode`& scancode, const :ref:`Uint32`& chr, const :ref:`Uint32`& mod); void :target:`sendKeyDown`(const :ref:`Keycode`& keyCode, const :ref:`Scancode`& scancode, const :ref:`Uint32`& chr, const :ref:`Uint32`& mod); void :target:`sendMouseClick`(:ref:`Node`* toNode, const :ref:`Vector2i`& pos, const :ref:`Uint32` flags); void :target:`sendMouseUp`(:ref:`Node`* toNode, const :ref:`Vector2i`& pos, const :ref:`Uint32` flags); void :target:`sendMouseDown`(:ref:`Node`* toNode, const :ref:`Vector2i`& pos, const :ref:`Uint32` flags); void :target:`sendMouseWheel`(const :ref:`Vector2f`& offset, bool flipped); const :ref:`Uint32`& :target:`getPressTrigger`() const; const :ref:`Uint32`& :target:`getLastPressTrigger`() const; const :ref:`Uint32`& :target:`getClickTrigger`() const; const :ref:`Uint32`& :target:`getDoubleClickTrigger`() const; const :ref:`Uint32`& :target:`getReleaseTrigger`() const; void :target:`setNodeDragging`(:ref:`Node`* dragging); bool :target:`isNodeDragging`() const; bool :target:`wasNodeDragging`() const; bool :target:`isOrWasNodeDragging`() const; :ref:`Vector2i` :target:`getMousePos`(); :ref:`Vector2f` :target:`getMousePosf`(); :ref:`Vector2i` :target:`getMouseDownPos`(); :ref:`Vector2f` :target:`getLastMousePos`(); :ref:`SceneNode`* :target:`getSceneNode`() const; const :ref:`Time`& :target:`getLastFrameTime`() const; :ref:`Node`* :target:`getNodeDragging`() const; :ref:`Node`* :target:`getNodeWasDragging`() const; bool :target:`getDisableMousePress`() const; void :target:`setDisableMousePress`(bool disableMousePress); :ref:`Uint32` :target:`addFocusEventCallback`(const :ref:`FocusCallback`& cb); bool :target:`removeFocusEventCallback`(const :ref:`Uint32`& cbId); :ref:`Node`* :target:`getLastFocusNode`() const; void :target:`setLastFocusNode`(:ref:`Node`* lastFocusNode); };