Event masks and event types for the events returned by extended
input devices are not constants. Instead, they are allocated by
the X server during its initialization. Therefore, client programs
must request from the server the event masks to be used to select
extended input and the event types to
be compared with an event when it is received.
To obtain an event mask and event type for a specific extended
input event, use
XHPGetExtEventMask.
int XHPGetExtEventMask(display, event_constant, eventtype, mask) Display *display; long event_constant; int *eventtype; /* RETURN */ long *mask; /* RETURN */
|
Title not available (Getting the Event Select Mask and Event Type )
- display
Specifies the connection to the X server.
- event_constant
Specifies the constant corresponding to the extended
event you wish to receive.
- eventtype
Address of a variable into which the server can
return the event type for the extended input event.
- mask
Address of a variable into which the server can
return the event mask to use in selecting that event.
The client program must request the event mask and event type
to be used in selecting the events returned by devices. It does
this by calling the server with a constant that corresponds to the
desired event. The server returns the event mask and event type
for the desired event. Valid constants that may be used by the client
to request corresponding event masks and types are shown in the
following table:
Table 6-2 Event
Select Masks
Mask Request | Description |
---|
HPDeviceKeyPressreq | Request HPDeviceKeyPress
event mask and event type for an extended device. |
HPDeviceKeyReleasereq | Request HPDeviceKeyRelease
event mask and event type for an extended device. |
HPDeviceButtonPressreq | Request HPDeviceButtonPress
event mask and event type for an extended device. |
HPDeviceButtonReleasereq | Request HPDeviceButtonRelease
event mask and event type for an extended device. |
HPDeviceMotionNotifyreq | Request HPDeviceMotionNotify
event mask and event type for an extended device. |
HPDeviceFocusInreq | Request HPDeviceFocusIn
event mask and event type for an extended device. |
HPDeviceFocusOutreq | Request HPDeviceFocusOut
event mask and event type for an extended device. |
HPProximityInreq | Request HPProximityIn
event mask and event type for an extended device. |
HPProximityOutreq | Request HPProximityOut
event mask and event type for an extended device. |
HPDeviceKeymapNotifyreq | Request HPDeviceKeymapNotify
event mask and event type for an extended device. |
HPDeviceMappingNotifyreq | Request HPDeviceMapping
event type for an extended device. (There is no event mask for this
event.) |
XHPGetExtMask
may return a BadType
error.