Touch.hpp
1 #ifndef CPP3DS_TOUCH_HPP
2 #define CPP3DS_TOUCH_HPP
3 
4 #include <cpp3ds/System/Vector2.hpp>
5 
6 namespace cpp3ds {
7 class Window;
8 
13 class Touch {
14 public :
15 
22  static bool isDown();
23 
32  static Vector2i getPosition();
33 };
34 
35 }
36 
37 #endif
38 
39 
static Vector2i getPosition()
Get the current position of a touch in desktop coordinates.
static bool isDown()
Check if a touch event is currently down.
Utility template class for manipulating 2-dimensional vectors.
Definition: Vector2.hpp:37
Give access to the real-time state of the touches.
Definition: Touch.hpp:13