1 // This file is part of VSTGUI. It is subject to the license terms
2 // in the LICENSE file found in the top-level directory of this
3 // distribution and at http://github.com/steinbergmedia/vstgui/LICENSE
4 
5 #ifndef __uitouchevent__
6 #define __uitouchevent__
7 
8 #include "../../../itouchevent.h"
9 
10 #if VSTGUI_TOUCH_EVENT_HANDLING
11 
12 #ifdef __OBJC__
13 @class UITouch;
14 #else
15 struct UITouch;
16 #endif
17 
18 namespace VSTGUI {
19 
20 class UITouchEvent : public ITouchEvent
21 {
22 public:
23 	typedef std::map<UITouch*, int32_t> NativeTouches;
24 
25 	int32_t touchCounter;
26 	double currentTime;
27 	NativeTouches nativeTouches;
28 
UITouchEvent()29 	UITouchEvent () : touchCounter (0) {}
30 
getTouchMap()31 	TouchMap& getTouchMap () { return touches; }
getTimeStamp()32 	double getTimeStamp () const override { return currentTime; }
33 };
34 
35 } // namespace
36 
37 #endif // VSTGUI_TOUCH_EVENT_HANDLING
38 
39 #endif // __uitouchevent__
40