MCPcopy Create free account
hub / github.com/Snapchat/Valdi / fillVelocity

Function fillVelocity

valdi_core/src/valdi_core/cpp/Events/TouchEvents.cpp:39–44  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

37}
38
39void fillVelocity(ValueMap& map, double velocityX, double velocityY) {
40 static auto velocityXKey = STRING_LITERAL("velocityX");
41 static auto velocityYKey = STRING_LITERAL("velocityY");
42 map[velocityXKey] = Value(velocityX);
43 map[velocityYKey] = Value(velocityY);
44}
45
46void fillEvent(ValueMap& map, Valdi::TouchEventState state, double x, double y, double absoluteX, double absoluteY) {
47 static auto absoluteXKey = STRING_LITERAL("absoluteX");

Callers 2

makeDragEventMethod · 0.85
makeScrollEventMethod · 0.85

Calls 1

ValueClass · 0.50

Tested by

no test coverage detected