MCPcopy Create free account
hub / github.com/comaps/comaps / GetSymmetricalTouch

Function GetSymmetricalTouch

dev_sandbox/main.cpp:104–114  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

102}
103
104df::Touch GetSymmetricalTouch(Framework & framework, df::Touch const & touch)
105{
106 m2::PointD const pixelCenter = framework.GetVisiblePixelCenter();
107 m2::PointD const symmetricalLocation = pixelCenter + pixelCenter - m2::PointD(touch.m_location);
108
109 df::Touch result;
110 result.m_id = touch.m_id + 1;
111 result.m_location = symmetricalLocation;
112
113 return result;
114}
115
116df::TouchEvent GetTouchEvent(Framework & framework, double x, double y, int mods, df::TouchEvent::ETouchType type)
117{

Callers 1

GetTouchEventFunction · 0.85

Calls 1

GetVisiblePixelCenterMethod · 0.80

Tested by

no test coverage detected