input: name input event structs
Some input event structs contain enums, whose values can be accessed globally in C, but need a qualified access in C++. Since these enums are defined inside unamed union and structs, there was no way to use them from C++ code. To avoid the problem, declare named structs for every event type requiring more than one field.
Please register or sign in to comment