Vegastrike 0.5.1 rc1
1.0
Original sources for Vegastrike Evolved
|
#include <eventmanager.h>
Public Member Functions | |
void | pushResponder (EventResponder *responder) |
void | removeResponder (EventResponder *responder, bool top=false) |
void | sendCommand (const EventCommandId &id, Control *control) |
Point | mouseLoc (void) |
Static Public Member Functions | |
static void | addToDeleteQueue (EventResponder *controlToDelete) |
static void | initializeEventManager (void) |
static void | ProcessMouseClick (int button, int state, int x, int y) |
static void | ProcessMouseActive (int x, int y) |
static void | ProcessMousePassive (int x, int y) |
Protected Member Functions | |
EventManager (void) | |
virtual | ~EventManager (void) |
void | sendInputEvent (const InputEvent &event) |
void | checkForShutDownEventManager (void) |
void | takeOverEventManagement (void) |
Protected Attributes | |
std::vector< EventResponder * > | m_responders |
Point | m_mouseLoc |
Definition at line 37 of file eventmanager.h.
|
protected |
Definition at line 189 of file eventmanager.cpp.
Referenced by initializeEventManager().
|
protectedvirtual |
Definition at line 195 of file eventmanager.cpp.
|
static |
Definition at line 64 of file eventmanager.cpp.
References deleteQueue.
Referenced by WindowManager::closeWindow(), GroupControl::deleteControl(), GroupControl::~GroupControl(), and Window::~Window().
|
protected |
Definition at line 204 of file eventmanager.cpp.
References globalEventManagerPtr, InitCallbacks(), and m_responders.
Referenced by sendInputEvent().
|
static |
Definition at line 56 of file eventmanager.cpp.
References EventManager(), and takeOverEventManagement().
Referenced by globalEventManager().
|
inline |
Definition at line 61 of file eventmanager.h.
References m_mouseLoc.
Referenced by WindowManager::draw().
Definition at line 257 of file eventmanager.cpp.
References clearDeleteQueue(), globalEventManager(), ModifyMouseSensitivity(), MOUSE_DRAG_EVENT, MouseXTo2dX(), MouseYTo2dY(), and sendInputEvent().
Referenced by UniverseUtil::startMenuInterface(), takeOverEventManagement(), and NavComputer::toggleVisibility().
Definition at line 238 of file eventmanager.cpp.
References clearDeleteQueue(), globalEventManager(), LEFT_MOUSE_BUTTON, MIDDLE_MOUSE_BUTTON, ModifyMouseSensitivity(), MOUSE_DOWN_EVENT, MOUSE_UP_EVENT, MouseXTo2dX(), MouseYTo2dY(), RIGHT_MOUSE_BUTTON, sendInputEvent(), WHEELDOWN_MOUSE_BUTTON, WHEELUP_MOUSE_BUTTON, WS_LEFT_BUTTON, WS_MIDDLE_BUTTON, WS_MOUSE_DOWN, WS_RIGHT_BUTTON, WS_WHEEL_DOWN, and WS_WHEEL_UP.
Referenced by UniverseUtil::startMenuInterface(), takeOverEventManagement(), and NavComputer::toggleVisibility().
Definition at line 266 of file eventmanager.cpp.
References clearDeleteQueue(), globalEventManager(), ModifyMouseSensitivity(), MOUSE_MOVE_EVENT, MouseXTo2dX(), MouseYTo2dY(), and sendInputEvent().
Referenced by UniverseUtil::startMenuInterface(), takeOverEventManagement(), and NavComputer::toggleVisibility().
void EventManager::pushResponder | ( | EventResponder * | responder) |
Definition at line 94 of file eventmanager.cpp.
References m_responders.
Referenced by WindowManager::openWindow(), Slider::processMouseDown(), NewButton::processMouseDown(), and Picker::processMouseDown().
void EventManager::removeResponder | ( | EventResponder * | responder, |
bool | top = false |
||
) |
Definition at line 100 of file eventmanager.cpp.
References i, and m_responders.
Referenced by WindowManager::closeWindow(), ModalDialog::modalFinished(), Slider::processMouseUp(), NewButton::processMouseUp(), Picker::processMouseUp(), and EventResponder::~EventResponder().
void EventManager::sendCommand | ( | const EventCommandId & | id, |
Control * | control | ||
) |
Definition at line 121 of file eventmanager.cpp.
References m_responders.
Referenced by EventResponder::sendCommand().
|
protected |
Definition at line 132 of file eventmanager.cpp.
References checkForShutDownEventManager(), i, KEY_DOWN_EVENT, KEY_UP_EVENT, m_mouseLoc, m_responders, MOUSE_DOWN_EVENT, MOUSE_DRAG_EVENT, MOUSE_MOVE_EVENT, MOUSE_UP_EVENT, and InputEvent::type.
Referenced by ProcessMouseActive(), ProcessMouseClick(), and ProcessMousePassive().
|
protected |
Definition at line 275 of file eventmanager.cpp.
References ProcessMouseActive(), ProcessMouseClick(), ProcessMousePassive(), winsys_set_motion_func(), winsys_set_mouse_func(), and winsys_set_passive_motion_func().
Referenced by initializeEventManager().
|
protected |
Definition at line 78 of file eventmanager.h.
Referenced by mouseLoc(), and sendInputEvent().
|
protected |
Definition at line 77 of file eventmanager.h.
Referenced by checkForShutDownEventManager(), pushResponder(), removeResponder(), sendCommand(), and sendInputEvent().