Main Page | Class Hierarchy | Alphabetical List | Data Structures | Directories | File List | Data Fields | Globals

ConsoleInput.h

Go to the documentation of this file.
00001 #ifndef HEADER_CONSOLEINPUT_H
00002 #define HEADER_CONSOLEINPUT_H
00003 
00004 class KeyConsole;
00005 
00006 #include "StateInput.h"
00007 
00008 #include <string>
00009 
00010 /**
00011  * Debug console input handler.
00012  */
00013 class ConsoleInput : public StateInput {
00014     private:
00015         static const int KEY_HISTORY = 101;
00016         static const int KEY_BACKSPACE = 102;
00017         static const int KEY_CLEAR = 103;
00018         static const int KEY_ENTER = 104;
00019         std::string m_history;
00020     protected:
00021         virtual void enableConsole();
00022         virtual void enableSubtitles() {}
00023         virtual void specStroke(const KeyStroke &stroke);
00024         virtual void specKey(int keyIndex);
00025     private:
00026         KeyConsole *getConsole();
00027     public:
00028         ConsoleInput(KeyConsole *console);
00029 };
00030 
00031 #endif

Generated on Wed Jun 1 09:54:30 2005 for Fish Fillets - Next Generation by  doxygen 1.4.2