Name: mouse_trap Language: C Author: Ian Curington Advanced Visual Systems, Inc Thames Mews, Portsmouth Road Esher, Surrey, UK 0372-471161 ianc@avs.com Source: mouse_trap.c Inputs: none Outputs: none Parameters: none Description: The "Mouse Trap" module accesses the X-Window of the Geometry Viewer display, and changes the mouse button definitions. It is intended as an AVS application developers example, to create custom interface controls. It intercepts all mouse events, and then selectively sends commands on to AVS for action. At present, it ignores all except the right mouse button, which behaves as a "pick", like the normal AVS left mouse button, while ignoring rotation and translation requests. The implementation is to make an invisible input only window, exactly covering the geometry viewer window. Events from this invisible window are detected, masking the geometry viewer window native events. Commands are then sent via the CLI mechanism. As a coroutine, this module can also take events from user interface parameters, although none are present in this version. Revision History: 15 April 93 ianc Original