DOC HOME SITE MAP MAN PAGES GNU INFO SEARCH PRINT BOOK
 

ev_setemask(S-osr5)


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

ev_setemask 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

 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

 +--+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
 |R | R | R | R | R | R | R | R | R | R | R | e | d | c | b | a |
 +--+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+

15                             0

 +---+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+
 |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 D_REL would not allow any events to be entered into the queue.

See also

ev_block(S-osr5), ev_close(S-osr5), ev_count(S-osr5), ev_flush(S-osr5), ev_getdev(S-osr5), ev_getemask(S-osr5), ev_gindev(S-osr5), ev_init(S-osr5), ev_open(S-osr5), ev_pop(S-osr5), ev_read(S-osr5), ev_resume(S-osr5), ev_suspend(S-osr5)

Standards conformance

ev_stemsk is not part of any currently supported standard; it is an extension of AT&T System V provided by the Santa Cruz Operation.
© 2005 The SCO Group, Inc. All rights reserved.
SCO OpenServer Release 6.0.0 -- 02 June 2005