Vermont Views stores information about user input in two places: the keyboard buffer, which holds only keystrokes, and the event queue, which holds information about events. Events get put into the event queue in several ways. Under PCDOS, an event is posted when the user performs an action with the mouse. Events are posted by internal Vermont Views routines to communicate with the processing function. You may also post events from your code.
Vermont Views provides two ways to get information about what the user is doing. There are a series of routines that deal with reading the keyboard; these routines all begin with the abbreviation "ki" for "keyboard input." These include such routines as ki() to read the keyboard, and ki_chk() to check whether a key is available. These routines return information only about keystrokes; they do not check the event queue. Many applications can rely only on these functions.
evnt_get() provides a way to check the event queue as well as the keyboard buffer. If there are no events in the queue, evnt_get() checks the keyboard buffer and returns information about keystrokes. If you are posting events from your code, or if you need to intercept mouse actions, you need to call evnt_get() rather than ki() to get your information.