auto sleep_until = std::chrono::high_resolution_clock::now() + std::chrono::milliseconds{ 400 };
for (auto i = 0u; i < tapCount; ++i)
{
+ if (i > 0) std::this_thread::sleep_for(std::chrono::milliseconds{ 100 });
executeOnMainThread([&]() {
auto res = utils::generateTapGesture(coord.x, coord.y, 0.0f, fingerCount);
if (!res)
executeOnMainThread([&]()
{
- utils::generateDragGesture(x0, y0, x1, y1, 10, 0.0, fingerCount);
+ utils::generateDragGesture(x0, y0, x1, y1, 20, 0.0, fingerCount);
});
- std::this_thread::sleep_for(std::chrono::milliseconds{ 1000 });
+ std::this_thread::sleep_for(std::chrono::milliseconds{ 600 });
return EvaluationValue{};
}, { { "fingers", 1 } } };
};