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

Function GetValidTouchesCount

libs/drape_frontend/user_event_stream.cpp:44–53  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

42float constexpr kForceTapThreshold = 0.75;
43
44size_t GetValidTouchesCount(std::array<Touch, 2> const & touches)
45{
46 size_t result = 0;
47 if (touches[0].m_id != -1)
48 ++result;
49 if (touches[1].m_id != -1)
50 ++result;
51
52 return result;
53}
54} // namespace
55
56#ifdef DEBUG

Callers 6

PrepareTouchesMethod · 0.85
TouchDownMethod · 0.85
TouchMoveMethod · 0.85
TouchCancelMethod · 0.85
TouchUpMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected