Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- enum Keys {
- #define KEY( NAME, VAL, DESCRIPTION ) NAME = VAL,
- #include "Keys.inl"
- #udnef KEY
- }
- static std::map< Keys, String > keyNames;
- static std::map< String, Keys > nameKeys;
- static std::map< Keys, String > keyDescriptions;
- void init() {
- #define KEY( NAME, VAL, DESCRIPTION ) \
- keyNames[ NAME ] = #NAME; \
- nameKeys[ #NAME ] = NAME; \
- keyDescriptions[ NAME ] = DESCRIPTION );
- #include "Keys.inl"
- #undef KEY
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement