[Top] [Prev] [Next]

pointer

Pointer - state of a pointer device such as a mouse

Synopsis

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 bits indicate released (or non-existent), and one bits indicate pressed. 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.



[Top] [Prev] [Next]

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