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

86 SunCGI Reference Manual associate links a trigger with a specific device. The trigger numbers avail- able for each device are listed in Table 5-1. Multiple associations are allowed; however, some associations are not allowed (for example, IC_LOCATOR may not be associated with the keyboard). OI The interaction between an IC_ srROKE device and the trigger requires some addi- tional explanation. IC_srROKE can only be associated with the mouse buttons. The first coordinate in the IC_ srROKE array is entered when the mouse button is initially pressed, the last coordinate is entered when the mouse button is released.

For IC_LOCATOR and IC_ VALUATOR devices, the measure is reported when the mouse button is pressed. i Errors ENOTVSAC [4] CGI not in proper state: CGI shall be in state VSAC. EINDNOEX [80] Input device does not _exist EINDINIT [81] Input device not initialized. EINASAEX [83] Association already exists. EINAIIMP [84] Association is impossible. EINTRNEX [86] Trigger does not exist. Set Default Trigger Associations Cerror set_default_trigger_associations(devclass, devnwn) Cdevoff devclass; /* device type*/ Cint devnwn; /* device number*/ 0 set_default_trigger_associations associates a device with a default trigger. The default associations are listed in Table 5-2.

The rules for trigger association are the same as those for the associate function. Table 5-2 Default Trigger Associations Device Trigger Trigger Number 5 Mouse position 4 Right mouse button 3 Middle mouse button 2 Left mouse button 1 Keyboard Class IC_LOCATOR IC_srROKE IC_VALUATOR IC_CHOICE IC STRING Errors ENOTVSAC [4] CGI not in proper state: CGI shall be in state VSAC. EINDNOEX [80] Input device does not exist EINDINIT [81] Input device not initialized. EINASAEX [83] Association already exists. EINTRNEX [86] Trigger does not exist. 0 Dissociate Version C of 17 Man:h 1986