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
11namespace smk {
12
13/// @example touch.cpp
14
16 glm::vec2 position = {0, 0};
17 float time = 0.f;
18};
19
20struct 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 */