ev_setemask(S) 6 January 1993 ev_setemask(S) Name ev_setemask - sets event mask Syntax cc . . . -levent #include <sys/types.h> #include <sys/param.h> #include <sys/sysmacros.h> #include <sys/page.h> #include <sys/event.h> #include <mouse.h> int ev_setemask (emask) emask_t emask; Description evsetemask sets the event mask on an event queue. Events whose tag is not masked-in are prevented from entering an event queue. Event masks are always initialized to allow all events. The different types of events are: R Reserved a ``Other'' Device events b Button events c String events d Relative Locator movement events e Absolute Locator movement events The bits that make up the mask number have the following definitions: _________________________________________________________________________ | R | R | R | R | R| R | R | R| R | R | R | e | d| c | b | a| |___|____|___|____|___|____|____|___|____|____|___|____|___|____|____|___| 15 0 Diagnostics If there is no open event queue, -1 is returned. If the new event mask would cause no events to enter the queue, -2 is returned and the event mask is not changed. For example, on a queue with only a mouse, any event mask which did not include DREL would not allow any events to be entered into the queue. See also evblock(S), evclose(S), evcount(S), evflush(S), evgetdev(S), evgetemask(S), evgindev(S), evinit(S), evopen(S), evpop(S), evread(S), evresume(S), evsuspend(S) Standards conformance evstemsk is not part of any currently supported standard; it is an extension of AT&T System V provided by the Santa Cruz Operation.