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

Method makeTapEvent

valdi_core/src/valdi_core/cpp/Events/TouchEvents.cpp:141–153  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

139}
140
141Value TouchEvents::makeTapEvent(Valdi::TouchEventState state,
142 double x,
143 double y,
144 double absoluteX,
145 double absoluteY,
146 int pointerCount,
147 Valdi::TouchEvents::PointerLocations& pointerLocations) {
148 auto map = makeShared<ValueMap>();
149 fillEvent(*map, state, x, y, absoluteX, absoluteY);
150 fillPointerData(*map, pointerCount, pointerLocations);
151
152 return Value(map);
153}
154
155Value TouchEvents::makeScrollEvent(
156 double x, double y, double unclampedX, double unclampedY, double velocityX, double velocityY) {

Callers

nothing calls this directly

Calls 3

fillEventFunction · 0.85
fillPointerDataFunction · 0.85
ValueClass · 0.50

Tested by

no test coverage detected