Skip to main content

Position Input

Simple position data will be conveyed in the following format:

POSIT : DEVICE : COUNT : x : y

POSIT is a protocol code indicating that this string contains position data. For the present this code is defined to be 2.

DEVICE is a code indicating the input device on which this data was generated. The codes are as defined above.

COUNT is an integer number indicating the number of bytes of data which follow. This includes data for both x and y coordinates. Thus, the number of bytes of x coordinate data is COUNT divided by 2. At level 0, COUNT should always be 4, since at this level all coordinates are expressed in 2 bytes of data.

x and y coordinate data are represented as signed fractions in the same fashion that position data is represented in the Level 0 graphic output protocol.