Sun Microsystems 800-1256-04 — Sun Microsystems 800-1256-04 SunCGI Reference Manual PDF (EN)

Chapter 2 - Initializing and Terminating SunCGJ 29 0 and which triggers may be associated with the specified logical input device. The echo argument describes which echo types are supponed.(see Chapter 5 for a list of echo types).6 The classdep argument provides class dependent informa- tion in character form (the type of information is given in Table 2-3). If more than one piece of class dependent information is returned, then the pieces of information are separated by commas. The state argument repons the initial state of the specified device. See the inquire_state_list function.

Table 2-5 Class Dependent Information Device Class I Information I Possible Values IC LOCATOR Coordinate Mapping Yes, No, Partial Native Range xmin, xmax, ymin, ymax IC_VALUATOR Set Valuator Range yes/no IC_STROKE Time Increment Settable yes/no Minimum Distance yes/no IC CHOICE Range min/max IC STRING None None Errors ENOTOPOP [5] CGI not in proper state CGI shall be either in state CGOP, VSOP, or VSAC.

Ornquire Trigger Capabilities Cerror inquire_trigger_capabilities(trigger, valid, tdis) Cint trigger; /* trigger number*/ Clogical *valid; /* trigger supported at all*/ Ctrigdis *tdis; /* trigger description table*/ inquire_trigger_capabilities describes how a particular trigger can be associated. The argument valid repons whether the device suppons input at all. typedef struct ( Cchangetype change; Cassoclid *nurnassoc; Cint maxassoc; Cpromstate prompt; Cackstate acknowledgement; Cchar *name; Cchar *description; Ctrigdis; The change element of tdis repons whether the specified trigger can be associ- ated with a logical input device.

The numassoc element of tdis gives supported LID associations for this trigger. This consists of n, the number of LID classes which can be associated with the trigger, a pointer to an array of n entries telling which n device classes can be associated with the trigger, and how many of each 0 6 Note that inquire_lid_capabilities returns an enumerated type whereas track_on accepts integers. Therefore these values may be different. Version C of 17 March '.986