Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ QueryKeymap(3X) — DeltaWindows 1.3.3 Release 4 Version 4.3

Media Vault

Software Library

Restoration Projects

Artifacts Sought

 

NAME

XQueryKeymap — obtain a bit vector for the current state of the keyboard. 

SYNOPSIS

XQueryKeymap(display, keys_return) Display ∗display; char keys_return[32];

ARGUMENTS

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

keys_return
Returns an array of bytes that identifies which keys are pressed down. Each bit represents one key of the keyboard.

DESCRIPTION

XQueryKeymap() returns a bit vector for the logical state of the keyboard, where each bit set to 1 indicates that the corresponding key is currently pressed down.  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.  Note that the logical state may lag the physical state if device event processing is frozen due to a grab. 

SEE ALSO

XChangeKeyboardMapping(), XDeleteModifiermapEntry(), XFreeModifiermap(), XGetKeyboardMapping(), XGetModifierMapping(), XInsertModifiermapEntry(), XKeycodeToKeysym(), XKeysymToKeycode(), XKeysymToString(), XLookupKeysym(), XLookupString(), XNewModifiermap(), XRebindKeysym(), XRefreshKeyboardMapping(), XSetModifierMapping(), XStringToKeysym(). 

Xlib Reference Manual

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