HPlogo HP Xlib Extensions: > Chapter 6 HP Input Device Extension Functions

Selecting Input From Extended Input Devices

» 

Technical documentation

Complete book in PDF

 » Table of Contents

 » Index

To select input from an extended input device, use XHPSelectExtensionEvent.

XHPSelectExtensionEvent(display, window, deviceid,
mask)
Display *display;
Window window;
XID deviceid;
Mask mask;

Title not available (Selecting Input From Extended Input Devices )

display

Specifies the connection to the X server.

window

Specifies the window ID. Client applications interested in an event for a particular window pass that window's ID.

deviceid

Specifies the device from which input is desired.

mask

Specifies the mask of input events.

The XHPSelectExtensionEvent function is provided to support the use of input devices other than the X keyboard and X pointer device. It allows input from extended input devices, selected independently of those events generated by the X pointer and keyboard.

XHPSelectExtensionEvent requests that the server send an extended event that matches the specified event mask and is issued from the specified device and window. To use this function, the client program must first determine the appropriate deviceid by using the XHPListInputDevices function, and the appropriate event mask by using the XHPGetExtEventMask function. Multiple event masks returned by XHPGetExtEventMask may be ORed together and specified in a single request to XHPSelectExtensionEvent.

XHPSelectExtensionEvent cannot be used to select any of the core X events, or to receive input from the X pointer or keyboard devices. Use the XSelectInput function for that purpose.

XHPSelectExtensionEvent can generate BadDevice and BadWindow errors.

© 1995 Hewlett-Packard Development Company, L.P.