#include <OgreEventDispatcher.h>
Public Methods | |
EventDispatcher (TargetManager *pTargetManager, EventProcessor *pEventProcessor) | |
virtual | ~EventDispatcher () |
bool | dispatchEvent (InputEvent *e) |
Dispatches an event to a PositionTarget if necessary, and returns whether or not the event was forwarded to a sub-PositionTarget. More... | |
Protected Methods | |
bool | processMouseEvent (MouseEvent *e) |
This method attempts to distribute a mouse event to a lightweight PositionTarget. More... | |
void | retargetMouseEvent (PositionTarget *target, int id, MouseEvent *e) |
Sends a mouse event to the current mouse event recipient using the given event (sent to the windowed host) as a srcEvent. More... | |
void | setMouseTarget (PositionTarget *target, MouseEvent *e) |
Change the current target of mouse events. More... | |
void | trackMouseEnterExit (PositionTarget *targetOver, MouseEvent *e) |
Protected Attributes | |
TargetManager * | mTargetManager |
EventProcessor * | mEventProcessor |
PositionTarget * | mFocus |
The current PositionTarget that has focus that is being hosted by this GuiContainer. More... | |
PositionTarget * | mMousePositionTarget |
The current PositionTarget being hosted by this windowed PositionTarget that has mouse events being forwarded to it. More... | |
PositionTarget * | mCursorOn |
PositionTarget the cursor is on. More... | |
PositionTarget * | mTargetLastEntered |
The last PositionTarget entered. More... | |
bool | mDragging |
Indicates if the mouse pointer is currently being dragged... More... | |
int | mEventMask |
|
|
|
|
|
Dispatches an event to a PositionTarget if necessary, and returns whether or not the event was forwarded to a sub-PositionTarget.
|
|
This method attempts to distribute a mouse event to a lightweight PositionTarget. It tries to avoid doing any unnecessary probes down into the PositionTarget tree to minimize the overhead of determining where to route the event, since mouse movement events tend to come in large and frequent amounts. |
|
Sends a mouse event to the current mouse event recipient using the given event (sent to the windowed host) as a srcEvent. If the mouse event target is still in the PositionTarget tree, the coordinates of the event are translated to those of the target. If the target has been removed, we don't bother to send the message. |
|
Change the current target of mouse events. the only place that modifies the member var mMousePositionTarget |
|
|
|
PositionTarget the cursor is on.
|
|
Indicates if the mouse pointer is currently being dragged... this is needed because we may receive exit events while dragging and need to keep the current mouse target in this case. |
|
|
|
|
|
The current PositionTarget that has focus that is being hosted by this GuiContainer. If this is a null reference then there is currently no focus on a PositionTarget being hosted by this GuiContainer |
|
The current PositionTarget being hosted by this windowed PositionTarget that has mouse events being forwarded to it. If this is null, there are currently no mouse events being forwarded to a PositionTarget. |
|
The last PositionTarget entered.
|
|
|
Copyright © 2002 by The OGRE Team