MCPcopy Create free account
hub / github.com/OpenStarbound/OpenStarbound / sendEvent

Method sendEvent

source/frontend/StarWireInterface.cpp:191–199  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

189}
190
191bool WirePane::sendEvent(InputEvent const& event) {
192 if (event.is<MouseMoveEvent>())
193 m_mousePos = *context()->mousePosition(event);
194
195 if (event.is<MouseButtonDownEvent>())
196 m_mousePos = *context()->mousePosition(event);
197
198 return false;
199}
200
201WireConnector::SwingResult WirePane::swing(WorldGeometry const& geometry, Vec2F pos, FireMode mode) {
202 pos = geometry.xwrap(pos);

Callers

nothing calls this directly

Calls 1

mousePositionMethod · 0.45

Tested by

no test coverage detected