/* * Using mouse device, get a new screen coordinate and button number. * Button numbers must be the following values which correspond to the * following software meanings: * 1 - left button * 2 - middle button * 3 - right button * * This is called directly by the application programs. * * A "rubberband" line is used. One end is fixed at the (cx, cy) coordinate. * The opposite end starts out at (*wx, *wy) and then tracks the mouse. * Upon button depression, the current coordinate is returned in (*wx, *wy) and * the button pressed in returned in *button. */ Get_location_with_line2(cx, cy, wx, wy, button) int cx, cy ; /* current x,y coordinate */ int *wx, *wy ; /* new x,y coordinate */ int *button ; /* button pressed to return */ { }