Touch.hpp
1
// Copyright 2019 Arthur Sonzogni. All rights reserved.
2
// Use of this source code is governed by the MIT license that can be found in
3
// the LICENSE file.
4
5
#ifndef SMK_TOUCH_HPP
6
#define SMK_TOUCH_HPP
7
8
#include <glm/glm.hpp>
9
#include <vector>
10
11
namespace
smk {
12
13
/// @example touch.cpp
14
15
struct
TouchDataPoint
{
16
glm::vec2 position = {0, 0};
17
float
time = 0.f;
18
};
19
20
struct
Touch
{
21
int
finger_id = 0;
22
std::vector<TouchDataPoint> data_points;
23
24
glm::vec2 position()
const
;
25
};
26
27
}
// namespace smk
28
29
#endif
/* end of include guard: SMK_TOUCH_HPP */
smk::TouchDataPoint
Definition:
Touch.hpp:15
smk::Touch
Definition:
Touch.hpp:20