Changeset 5178 in orxonox.OLD for trunk/src/lib/shell/shell_input.h
- Timestamp:
- Sep 13, 2005, 12:12:11 AM (19 years ago)
- File:
-
- 1 copied
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/lib/shell/shell_input.h
r5177 r5178 1 1 /*! 2 * @file proto_class.h2 * @file shell_input.h 3 3 * @brief Definition of ... 4 4 */ 5 5 6 #ifndef _PROTO_CLASS_H 7 #define _PROTO_CLASS_H 8 9 #include "base_object.h" 6 #ifndef _SHELL_INPUT_H 7 #define _SHELL_INPUT_H 10 8 11 9 // FORWARD DECLARATION 12 10 class Text; 11 template<class T> class tList; 13 12 14 13 15 14 //! A class for ... 16 class ProtoClass : public BaseObject {15 class ShellInput { 17 16 18 17 public: 19 ProtoClass(); 20 virtual ~ProtoClass(); 18 ShellInput(); 19 virtual ~ShellInput(); 20 21 22 // InputLine 23 void flush(); 24 void addCharacter(char character); 25 void addCharacters(const char* characters); 26 void removeCharacters(unsigned int characterCount = 1); 27 void setRepeatDelay(float repeatDelay, float repeatRate); 21 28 22 29 23 30 private: 31 // HANDLING TEXT INPUT 32 Text* inputLineText; //!< The inputLine of the Shell 33 char* inputLine; //!< the Char-Array of the Buffer 34 float repeatRate; //!< The Repeat-Delay. 35 float repeatDelay; //!< The delay of the first Character of a given Character. 36 float delayed; //!< how much of the delay is remaining. 37 int pressedKey; //!< the pressed key that will be repeated. 38 39 tList<char>* inputHistory; //!< The history of given commands. 24 40 25 41 }; 26 42 27 #endif /* _ PROTO_CLASS_H */43 #endif /* _SHELL_INPUT_H */
Note: See TracChangeset
for help on using the changeset viewer.