#pragma once #include #include #include #include namespace NXKit { class UITouch; class UIEvent { public: std::set> allTouches() { return _allTouches; } Timer timestamp() { return _timestamp; } UIEvent(); virtual ~UIEvent() {} private: UIEvent(std::shared_ptr touch); static std::vector> activeEvents; std::set> _allTouches; Timer _timestamp = Timer(); friend class UIApplicationMain; friend class UIApplication; friend class UIView; }; }