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

Method DetectDoubleTap

libs/drape_frontend/user_event_stream.cpp:1163–1170  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1161}
1162
1163bool UserEventStream::DetectDoubleTap(Touch const & touch)
1164{
1165 if (m_state != STATE_WAIT_DOUBLE_TAP || m_touchTimer.ElapsedMilliseconds() > kDoubleTapPauseMs)
1166 return false;
1167
1168 m_state = STATE_WAIT_DOUBLE_TAP_HOLD;
1169 return true;
1170}
1171
1172void UserEventStream::PerformDoubleTap(Touch const & touch)
1173{

Callers

nothing calls this directly

Calls 1

ElapsedMillisecondsMethod · 0.80

Tested by

no test coverage detected