/**
* Namespace
TextInput written by Justin Klein, 2004
**/
/**
* Namespace TextInput written by Justin
Klein, 2004
*
* This namespace contains 3 functions to
allow text input to be gathered in a buffer,
* so that it can be
rendered in an OpenGL window.
* void Init() Sets up the buffer
* char* GetTextInput() Polls the keyboard for keypresses, and
returns the current
* buffer
(a string of the characters seen up to this point)
* void ClearTextInput() Resets the buffer to no contents.
* char* GetCompleteLine()
If the last key pressed was "enter" or "return", returns
the full text (excluding
* the
trailing newline) of the user's input; otherwise returns NULL.
* bool*
PollKeyboard() Returns a 256-bool
array containing the current state of the keybaord, where
* state[VK_DELETE] is true if delete is pressed down at the
time of the call.
* bool*
PollSinglePress() Returns a 256-bool array containing the current state of the
keybaord, where
* state[VK_DELETE] is true if delete has been pressed (but
wasn't pressed before)
* bool
isAnyKeyPressed() Returns true iff a
key is pressed that was NOT pressed before (new keypresses only)
*
* BUFFER_SIZE This
constant can be changed to allow for smaller or larger
* buffers.
**/