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

Sending a Prompt to Extended Input Devices

» 

Technical documentation

Complete book in PDF

 » Table of Contents

 » Index

To turn on a prompt on an extended input device, use XHPPrompt.

int XHPPrompt(display, deviceid, prompt)
Display *display;
XID deviceid;
unsigned int prompt;

Title not available (Sending a Prompt to Extended Input Devices )

display

Specifies the connection to the X server.

deviceid

Specifies the ID of the desired device.

prompt

Specifies the prompt to be sent. Valid values are: GENERAL_PROMPT, PROMPT_1, PROMPT_2, PROMPT_3, PROMPT_4, PROMPT_5, PROMPT_6, and PROMPT_7.

XHPPrompt sends a prompt to an input device. For example, you can use this function to turn on the LED on the HP 46086A 32-button box.

The io_byte field of the XHPDeviceList structure, which is returned by the XHPListInputDevices function, reports which prompts and acknowledges are supported by the device. Bit 7 of the io_byte field corresponds to GENERAL_PROMPT, while bits 6, 5, and 4 are taken as a number between 1 and 7, meaning that prompts numbered 1 through that number are supported.

XHPPrompt can generate BadDevice and BadValue errors.

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