Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ XNewModifie(3x) — HP-UX ANSI C A.10.11

Media Vault

Software Library

Restoration Projects

Artifacts Sought

 

XNewModifiermap − create a keyboard modifier mapping structure.

Synopsis

XModifierKeymap *XNewModifiermap(max_keys_per_mod)
  int max_keys_per_mod;

Arguments

max_keys_per_mod
Specifies the maximum number of keycodes assigned to any of the modifiers in the map.

Description

XNewModifiermap() allocates space for an XModifierKeymap() structure, sets its fields, and returns a pointer to the structure.  This function is used when more than one XModifierKeymap() structure is needed.  max_keys_per_mod depends on the server and should be gotten from the XModifierKeymap() structure returned by XGetModifierMapping().  For more information on keyboard preferences, see Volume One, Chapter 9, The Keyboard and Pointer. 

Structures

typedef struct {
int max_keypermod;/* server’s max number of keys per modifier */
KeyCode *modifiermap;/* An 8 by max_keypermod array
* of the modifiers */
} XModifierKeymap;

See Also

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

Copyright O’Reilly & Assoc.  —  

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