XGetModifierMapping man page on HP-UX

Man page or keyword search:  
man Server   10987 pages
apropos Keyword Search (all sections)
Output format
HP-UX logo
[printable version]

XGetModifierMapping()					 XGetModifierMapping()

Name
  XGetModifierMapping  – obtain the mapping of modifier keys (Shift, Con‐
  trol, etc.).

Synopsis
  XModifierKeymap *XGetModifierMapping(display)
	Display *display;

Arguments
  display   Specifies  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,
  LockMapIndex,	 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 modi‐
  fier 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(),     XFreeModi‐
  fiermap(),   XGetKeyboardMapping(),	XInsertModifiermapEntry(),  XKey‐
  codeToKeysym(), XKeysymToKeycode(), XKeysymToString(), XLookupKeysym(),
  XLookupString(),  XNewModifierMap,  XQueryKeymap(), XRebindKeySym, XRe‐
  freshKeyboardMapping(), XSetModifierMapping(), XStringToKeysym().

X Programming Library					 XGetModifierMapping()
[top]

List of man pages available for HP-UX

Copyright (c) for man pages and the logo by the respective OS vendor.

For those who want to learn more, the polarhome community provides shell access and support.

[legal] [privacy] [GNU] [policy] [cookies] [netiquette] [sponsors] [FAQ]
Tweet
Polarhome, production since 1999.
Member of Polarhome portal.
Based on Fawad Halim's script.
....................................................................
Vote for polarhome
Free Shell Accounts :: the biggest list on the net