mirror of
https://github.com/SFML/SFML.git
synced 2025-02-07 17:08:02 +08:00
This new API is built on top of std::variant. This allows us to store many different event types in a space-efficient way and access the active event type in a type-safe manner that eliminates the categories of UB that are possible with unions. Co-authored-by: kimci86 <kimci86@hotmail.fr>