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

Method PrepareTouches

libs/drape_frontend/user_event_stream.cpp:86–93  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

84}
85
86void TouchEvent::PrepareTouches(std::array<Touch, 2> const & previousTouches)
87{
88 if (GetValidTouchesCount(m_touches) == 2 && GetValidTouchesCount(previousTouches) > 0)
89 {
90 if (previousTouches[0].m_id == m_touches[1].m_id)
91 Swap();
92 }
93}
94
95void TouchEvent::SetFirstMaskedPointer(uint8_t firstMask)
96{

Callers 1

ProcessTouchMethod · 0.80

Calls 2

GetValidTouchesCountFunction · 0.85
SwapFunction · 0.85

Tested by

no test coverage detected