Space Walk board game
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

30 lines
506 B

  1. #ifndef INPUTOUTPUT_H
  2. #define INPUTOUTPUT_H
  3. #define KEY_ESC 27
  4. #define KEY_SPACE 32
  5. #include <string>
  6. class IO
  7. {
  8. public:
  9. static void initialize();
  10. static void update();
  11. static std::string trim(std::string str);
  12. static std::string untrim(std::string str, unsigned int length);
  13. static int getKeyCode();
  14. static std::string getKeyName();
  15. static std::string getStrInput();
  16. static bool getQuit();
  17. static void setQuit();
  18. private:
  19. static int keyCode;
  20. static bool quit;
  21. };
  22. #endif // INPUTOUTPUT_H