Data Input Primitives
Input Control
TARGET-SENSATIVE(key1, ..., keyn)
Arms the units which have the specified keys for target selection.
SET-INPUT-MODE(Device, parameters)
Selects the mode in which a logical device shall produce input and under what conditions.
the logical devices are specified below as well as their possible input formats and conditions.
Errors: no such device.
Keyboard input
The keyboard has only one input mode, in which it sends a character whenever a key is struck.
Binary devices
Unless otherwise specified, binary devices act as an extension of the keyboard and produce 8-bit characters which are not distinguishable from keyboard characters by the serving host.
The algorithm for translating binary devices into characters is not specified, but something like the NLS accumulation algorithm for mouse-keyset chords is intended.
Binary devices may also input binary data (according to their up/down states), which is transmitted on state changes. Examples of this type of device are function keys and overlay cards, mouse and keyset (used independently or together), pen-up/pen/down, light pen buttons, etc.
Coordinate input
Coordinates may be sent according to any subset of the following criteria: with every character in some designated set (e.g. control characters, or all characters); with every binary device state change input; after some time interval has elapsed; after a position change P > (y1-y0) ^2+(x1-x0)^2, etc.
Coordinates may be sent in either or both of "X-Y" or "target" format.
X-Y format is just the location of the cursor relative to the screen region assigned to the host.
Target format is the "call stack" (logical path from the root unit - the ICP SUBPICTURE - to the closest unit) plus the target-key of that unit plus the count of the closest character within the string or the closest line segment or dot or special point if appropriate.
Target input is unavailable for segmented display files.
In the event of overlapping target sensitive units, it is not specified which of the units selected will be returned as the hit unit.
Time input
Since hosts may wish to consider two events happening sufficiently close together to be simultaneous, or to keep detailed interaction statistics, it must be possible to request time information to be sent with some reasonable subnet of other types of input.