1 | #pragma once |
---|---|
2 | #include "taichi/ui/utils/utils.h" |
3 | |
4 | namespace taichi::ui { |
5 | |
6 | enum class EventType : int { Any = 0, Press = 1, Release = 2 }; |
7 | |
8 | struct Event { |
9 | EventType tag; |
10 | |
11 | DEFINE_PROPERTY(std::string, key); |
12 | }; |
13 | |
14 | } // namespace taichi::ui |
15 |