Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

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

Media Vault

Software Library

Restoration Projects

Artifacts Sought

 

NAME

XGetModifierMapping — obtain the mapping of modifier keys (Shift, Control, etc.). 

SYNOPSIS

XModifierKeymap ∗XGetModifierMapping(display) Display ∗display;

ARGUMENTS

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

RETURNS

The current modifier mapping. 

DESCRIPTION

XGetModifierMapping() returns the keycodes of the keys being used as modifiers. 

There are eight modifiers, represented by the symbols ShiftMapIndex, LockMap­Index, ControlMapIndex, Mod1MapIndex, Mod2MapIndex, Mod3Map­Index, Mod4MapIndex, and Mod5MapIndex.  The modifiermap member of the XModifierKeymap() structure contains eight sets of keycodes, each set containing max_keypermod keycodes.  Zero keycodes are not meaningful.  If an entire modifiermap is filled with zero’s, the corresponding modifier is disabled.  No keycode will appear twice anywhere in the map. 

STRUCTURES

typedef struct {
    int max_keypermod;       /∗ server’s max number of keys per modifier ∗/
    KeyCode ∗modifiermap;    /∗ an 8 by max_keypermod array of
         ∗ keycodes to be used as modifiers ∗/ } XModifierKeymap;
 
/∗ modifier names.  Used to build a SetModifierMapping request or
   to read a GetModifierMapping request. ∗/ #define ShiftMapIndex       0 #define LockMapIndex        1 #define ControlMapIndex     2 #define Mod1MapIndex        3 #define Mod2MapIndex        4 #define Mod3MapIndex        5 #define Mod4MapIndex        6 #define Mod5MapIndex        7

SEE ALSO

XChangeKeyboardMapping(), XDeleteModifiermapEntry(), XFreeModifiermap(), XGetKeyboardMapping(), XInsertModifiermapEntry(), XKeycodeToKeysym(), XKeysymToKeycode(), XKeysymToString(), XLookupKeysym(), XLookupString(), XNewModifierMap, XQueryKeymap(), XRebindKeySym, XRefreshKeyboardMapping(), XSetModifierMapping(), XStringToKeysym(). 

Xlib Reference Manual

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