XGetKeyboardControl()XGetKeyboardControl()Name
XGetKeyboardControl – obtain a list of the current keyboard prefer‐
ences.
Synopsis
XGetKeyboardControl(display, values_return)
Display *display;
XKeyboardState *values_return;
Arguments
display Specifies a connection to an X server; returned from
XOpenDisplay().
values_return
Returns filled XKeyboardState() structure.
DescriptionXGetKeyboardControl() returns the current control values for the key‐
board. 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 signifi‐
cant 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 AlsoXAutoRepeatOff(), XAutoRepeatOn(), XBell(), XChangeKeyboardControl(),
XGetDefault(), XGetPointerControl().
Xlib - User Preferences XGetKeyboardControl()