diff options
Diffstat (limited to 'src/game/client/lineinput.hpp')
| -rw-r--r-- | src/game/client/lineinput.hpp | 29 |
1 files changed, 0 insertions, 29 deletions
diff --git a/src/game/client/lineinput.hpp b/src/game/client/lineinput.hpp deleted file mode 100644 index 75b2bd1d..00000000 --- a/src/game/client/lineinput.hpp +++ /dev/null @@ -1,29 +0,0 @@ -#ifndef GAME_CLIENT_LINEINPUT_H -#define GAME_CLIENT_LINEINPUT_H - -// line input helter -class LINEINPUT -{ - char str[256]; - int len; - int cursor_pos; -public: - static void manipulate(INPUT_EVENT e, char *str, int str_max_size, int *str_len, int *cursor_pos); - - class CALLBACK - { - public: - virtual ~CALLBACK() {} - virtual bool event(INPUT_EVENT e) = 0; - }; - - LINEINPUT(); - void clear(); - void process_input(INPUT_EVENT e); - void set(const char *string); - const char *get_string() const { return str; } - int get_length() const { return len; } - unsigned cursor_offset() const { return cursor_pos; } -}; - -#endif |