SFML's variant: kind identifies the subtype; payload fields stay intact.
kind
创建事件快照,同时复制其中的向量字段。
Readonly
事件数据快照,可通过 kind 区分字段类型。
事件种类名称。
种类匹配时返回数据,否则返回 undefined。
判断事件种类,并在 TypeScript 中收窄事件类型。
同步访问事件数据,返回 visitor 的结果。
SFML's variant:
kindidentifies the subtype; payload fields stay intact.