[Top] [Prev] [Next]

pointer - state of a pointer device such as a mouse

include "draw.m";
draw:= load Draw Draw->PATH;
Pointer: adt
{
  buttons: int;
  xy:    Point;
};

Description
buttons

Each button on the device corresponds to a bit in buttons; zero (0) bits indicate released or non-existent buttons, and one (1) bits indicates pressed buttons. The bits, from least to most significant positions, represent the buttons from left to right.

xy

The pointer's screen coordinates.

The pointer's position and button state is passed through a channel in the Context, as described in context - graphics environment.



[Top] [Prev] [Next]

infernosupport@lucent.com
Copyright © 1996,Lucent Technologies, Inc. All rights reserved.