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.
		
		
		
		
		
			
		
			
				
					
					
						
							29 lines
						
					
					
						
							506 B
						
					
					
				
			
		
		
	
	
							29 lines
						
					
					
						
							506 B
						
					
					
				#ifndef INPUTOUTPUT_H | 
						|
#define INPUTOUTPUT_H | 
						|
 | 
						|
#define KEY_ESC 27 | 
						|
#define KEY_SPACE 32 | 
						|
 | 
						|
#include <string> | 
						|
 | 
						|
class IO | 
						|
{ | 
						|
public: | 
						|
	static void initialize(); | 
						|
	static void update(); | 
						|
 | 
						|
	static std::string trim(std::string str); | 
						|
	static std::string untrim(std::string str, unsigned int length); | 
						|
 | 
						|
	static int getKeyCode(); | 
						|
	static std::string getKeyName(); | 
						|
	static std::string getStrInput(); | 
						|
	static bool getQuit(); | 
						|
	static void setQuit(); | 
						|
 | 
						|
private: | 
						|
	static int keyCode; | 
						|
	static bool quit; | 
						|
}; | 
						|
 | 
						|
#endif // INPUTOUTPUT_H
 | 
						|
 |