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

Method makePinchEvent

valdi_core/src/valdi_core/cpp/Events/TouchEvents.cpp:105–121  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

103}
104
105Value TouchEvents::makePinchEvent(Valdi::TouchEventState state,
106 double x,
107 double y,
108 double absoluteX,
109 double absoluteY,
110 double scale,
111 int pointerCount,
112 Valdi::TouchEvents::PointerLocations& pointerLocations) {
113 static auto scaleKey = STRING_LITERAL("scale");
114
115 auto map = makeShared<ValueMap>();
116 fillEvent(*map, state, x, y, absoluteX, absoluteY);
117 fillPointerData(*map, pointerCount, pointerLocations);
118 (*map)[scaleKey] = Value(scale);
119
120 return Value(map);
121}
122
123Value TouchEvents::makeRotationEvent(Valdi::TouchEventState state,
124 double x,

Callers

nothing calls this directly

Calls 3

fillEventFunction · 0.85
fillPointerDataFunction · 0.85
ValueClass · 0.50

Tested by

no test coverage detected