Jump to content United States-English
HP.com Home Products and Services Support and Drivers Solutions How to Buy
» Contact HP
More options
HP.com home
HP Xlib Extensions: > Chapter 6 HP Input Device Extension Functions

Enabling Extended Input Devices

» 

Technical documentation

Complete book in PDF
» Feedback
Content starts here

 » Table of Contents

 » Index

To enable an extended input device, use XHPSetInputDevice.

int XHPSetInputDevice(display,deviceid,mode)
Display *display;
XID deviceid;
int mode;

Title not available (Enabling Extended Input Devices )

display

Specifies the connection to the X server.

deviceid

Specifies the device to open or close. This is a deviceid listed in the XHPDeviceList structure.

mode

Controls the mode to which the device is set. Valid values are ON|SYSTEM_EVENTS, ON|DEVICE_EVENTS, and OFF.

XHPSetInputDevice allows a client program to request the server to open a device or to close a device when it is no longer needed. The client may cause input from the device to be merged with input from the X keyboard or X pointer by using the mode SYSTEM_EVENTS, or as an individually-selectable device by using the mode DEVICE_EVENTS.

Most clients need to use the DEVICE_EVENTS mode so that the events generated by an extended input device can be distinguished from those generated by the X keyboard and pointer devices.

XHPSetInputDevice can generate BadDevice and BadMode errors. A BadMode error is generated if another client has opened the device with a conflicting mode.

Printable version
Privacy statement Using this site means you accept its terms Feedback to webmaster
© 1995 Hewlett-Packard Development Company, L.P.