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

Method makeRotationEvent

valdi_core/src/valdi_core/cpp/Events/TouchEvents.cpp:123–139  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

121}
122
123Value TouchEvents::makeRotationEvent(Valdi::TouchEventState state,
124 double x,
125 double y,
126 double absoluteX,
127 double absoluteY,
128 double rotation,
129 int pointerCount,
130 Valdi::TouchEvents::PointerLocations& pointerLocations) {
131 static auto rotationKey = STRING_LITERAL("rotation");
132
133 auto map = makeShared<ValueMap>();
134 fillEvent(*map, state, x, y, absoluteX, absoluteY);
135 fillPointerData(*map, pointerCount, pointerLocations);
136 (*map)[rotationKey] = Value(rotation);
137
138 return Value(map);
139}
140
141Value TouchEvents::makeTapEvent(Valdi::TouchEventState state,
142 double x,

Callers

nothing calls this directly

Calls 3

fillEventFunction · 0.85
fillPointerDataFunction · 0.85
ValueClass · 0.50

Tested by

no test coverage detected