| 44 | } |
| 45 | |
| 46 | void fillEvent(ValueMap& map, Valdi::TouchEventState state, double x, double y, double absoluteX, double absoluteY) { |
| 47 | static auto absoluteXKey = STRING_LITERAL("absoluteX"); |
| 48 | static auto absoluteYKey = STRING_LITERAL("absoluteY"); |
| 49 | static auto stateKey = STRING_LITERAL("state"); |
| 50 | |
| 51 | map.reserve(6); |
| 52 | fillEventTime(map); |
| 53 | fillPosition(map, x, y); |
| 54 | map[absoluteXKey] = Value(absoluteX); |
| 55 | map[absoluteYKey] = Value(absoluteY); |
| 56 | map[stateKey] = Value(static_cast<int32_t>(state)); |
| 57 | } |
| 58 | |
| 59 | void fillPointerData(ValueMap& map, int pointerCount, Valdi::TouchEvents::PointerLocations& pointerLocations) { |
| 60 | static auto pointerCountKey = STRING_LITERAL("pointerCount"); |
no test coverage detected