MCPcopy Create free account
hub / github.com/OpenApoc/OpenApoc / eventOccured

Method eventOccured

framework/apocresources/cursor.cpp:44–51  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

42ApocCursor::~ApocCursor() = default;
43
44void ApocCursor::eventOccured(Event *e)
45{
46 if (e->type() == EVENT_MOUSE_MOVE)
47 {
48 cursorPos.x = e->mouse().X;
49 cursorPos.y = e->mouse().Y;
50 }
51}
52
53void ApocCursor::render()
54{

Callers 1

processEventsMethod · 0.45

Calls 1

typeMethod · 0.80

Tested by

no test coverage detected