UserInputLookahead.mesa
Copyright Ó 1992 by Xerox Corporation. All rights reserved.
Christian Jacobi, February 19, 1992 0:34 am PST
DIRECTORY
UserInput USING [Handle];
UserInputLookahead: CEDAR DEFINITIONS ~
BEGIN
Handle: TYPE ~ UserInput.Handle;
SaveState: PROC [saved: Handle, handle: Handle];
Copies the current state of the input queue from handle into saved (put doesn't not copy all queue information). Thus, if "saved" was initially empty, it is appropriate to pass "saved" to GetAction, CountKeySyms, GetKeySym, KeyCodeFromKeySym, GetKeyState, GetTime, but probably not to other routines.
RestoreState: PROC [saved: Handle, handle: Handle];
Copies back the current state of the input queue from saved into handle. It is equivalent to SaveState[handle, saved] except it doesn't restore the keyboard mapping.
END.