| 102 | } |
| 103 | |
| 104 | df::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 | |
| 116 | df::TouchEvent GetTouchEvent(Framework & framework, double x, double y, int mods, df::TouchEvent::ETouchType type) |
| 117 | { |
no test coverage detected