Sun Microsystems 800-1256-04 — Sun Microsystems 800-1256-04 SunCGI Reference Manual PDF

82 SunCGI Reference Manual 0 Table 5-1 Input Devices Offered by SunCGI Device Measure Trigger Trigger Class Number IC LOCATOR x-y position in VDC 2 Left mouse button space. 3 Middle mouse button 4 Right mouse button 5 Mouse movementt 6 Mouse still:j: IC STROKE Array of x-y points in 2 Left mouse button VDC space. 3 Middle mouse button 4 Right mouse button IC.VALUATOR Normalized x position. 2 Left mouse button 3 Middle mouse button 4 Right mouse button 5 Mouse movement 6 Mouse still IC CHOICE A non-negative integer 2 Left mouse button which represents a 3 Middle mouse button selection from a number 4 Right mouse button of choices. Zero represents "no choice". 0 IC_STRING Character string.

I Keyboard input ter- minated a carriage retum t The Mouse Movement trigger fires when the mouse moves. :j: The Mouse Still trigger fires when the mouse does not move for one fifth of a second or more. The graphical method with which the measure of an input device is displayed is called tracking . SunCGI provides several methods of tracking for each input device. Table 5-3 has a list of track types available for each input device class. Tracking must be explicitly enabled for each device. Each input device can be in one of the five states described pictorially in Figure 5-1.

The state of an input device determines the manner in which the application program retrieves the measure of the input device. The input functions that allow a change of state are listed next IX> the arrows indicating the state change. RELEASED Before an input device is initialized it is in the RELEASED state. Any input function (except initialization) will generate an error in this state. NO_EVENTS After an input device has been initialized it is in the NO_EVENTS state. An 0, application program can extract an input value of an input device in NO_EVENTS state. This will result in either the value that the device was Version C of 17 March 1986