Files
OpenVulkano/openVulkanoCpp/Input/Touch/GestureInfos.hpp
2023-10-15 13:39:22 +02:00

34 lines
584 B
C++

/*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at https://mozilla.org/MPL/2.0/.
*/
#pragma once
#include "Math/Math.hpp"
#include <chrono>
namespace OpenVulkano::Input
{
struct PanInfo
{
Math::Vector2f position;
Math::Vector2f distance;
Math::Vector2f delta;
float scale = 0.0f;
};
struct PinchInfo
{
Math::Vector2f position;
float scale = 0.0f;
};
struct TapInfo
{
Math::Vector2f position;
std::chrono::seconds duration;
};
}