22 lines
467 B
C++
22 lines
467 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 "Touch.hpp"
|
|
|
|
namespace OpenVulkano::Input
|
|
{
|
|
struct TouchInfo final
|
|
{
|
|
TouchId touchId;
|
|
Math::Vector2f initialPosition;
|
|
Math::Vector2f currentPosition;
|
|
Math::Vector2f delta;
|
|
bool isDrag = false;
|
|
bool active = false;
|
|
};
|
|
} |