[comp.windows.x] Convert event type to mask

rcb@ccpv1.ncsu.edu (Randy Buckland) (07/05/89)

Is there a routine that will convert an event id (such as KeyPress or 
KeyRelease) to an event mask (KeyPressMask or KeyReleaseMask)?

Randy Buckland
rcb@ncsuvx.ncsu.edu

rws@EXPO.LCS.MIT.EDU (07/06/89)

    Is there a routine that will convert an event id (such as KeyPress or 
    KeyRelease) to an event mask (KeyPressMask or KeyReleaseMask)?

There is an internal array (_event_to_mask in evtomask.c) in the MIT Xlib
implementation for this, but no external interface to it is defined in Xlib.