Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ XGetKeyboaA(3x) — HP-UX 9.05

Media Vault

Software Library

Restoration Projects

Artifacts Sought

 

NAME

XGetKeyboardControl − obtain a list of the current keyboard preferences. 

Synopsis

XGetKeyboardControl(display, values_return)
Display *display;
XKeyboardState *values_return;

Arguments

displaySpecifies a connection to an X server; returned from XOpenDisplay(). 

values_return
Returns filled XKeyboardState() structure. 

Description

XGetKeyboardControl() returns the current control values for the keyboard.  For the LEDs (light emitting diodes), the least significant bit of led_mask corresponds to LED 1, and each bit that is set to 1 in led_mask indicates an LED that is lit.  auto_repeats is a bit vector; each bit that is set to 1 indicates that auto-repeat is enabled for the corresponding key.  The vector is represented as 32 bytes.  Byte N (from 0) contains the bits for keys 8N to 8N+7, with the least significant bit in the byte representing key 8N.  global_auto_repeat is either AutoRepeatModeOn or AutoRepeatModeOff.  For the ranges of each member of XKeyboardState(), see the description of XChangePointerControl().  For more information, see Volume One, Chapter 9, The Keyboard and Pointer. 

Structures

typedef struct {
int key_click_percent;
int bell_percent;
unsigned int bell_pitch, bell_duration;
unsigned long led_mask;
int global_auto_repeat;
char auto_repeats[32];
} XKeyboardState;

See Also

XAutoRepeatOff(), XAutoRepeatOn(), XBell(), XChangeKeyboardControl(), XGetDefault(), XGetPointerControl(). 

Copyright O’Reilly & Assoc.  —  

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026