fork download
  1. #include <vector>
  2. #include <string>
  3.  
  4. enum class SettingTypes { Key };
  5.  
  6. struct Setting {
  7. Setting(const std::string&, const std::string&, SettingTypes) {}
  8. };
  9.  
  10. struct SettingCategory {
  11. SettingCategory(const std::string&, const std::vector<Setting>&) {}
  12. };
  13.  
  14. class ControlManager
  15. {
  16. public:
  17. ControlManager();
  18. private:
  19. SettingCategory controls_;
  20. };
  21.  
  22. ControlManager::ControlManager()
  23. :controls_("Controls",
  24. {
  25. {"Up", "Keyboard_Up", SettingTypes::Key},
  26. {"Down", "Keyboard_Down", SettingTypes::Key},
  27. {"Left", "Keyboard_Left", SettingTypes::Key},
  28. {"Right", "Keyboard_Right", SettingTypes::Key},
  29. {"Enter", "Keyboard_Return", SettingTypes::Key},
  30. {"Back", "Keyboard_Escape", SettingTypes::Key}
  31. })
  32. {
  33. }
  34. int main()
  35. {
  36. ControlManager cm;
  37. }
  38.  
Success #stdin #stdout 0s 3060KB
stdin
Standard input is empty
stdout

Standard output is empty