Amiga Unix — 68040 · 68060

Manual pages › X Window and screen libraries (3X)

XStTKsym(3X)

convert keysyms

From the original Amiga UNIX 2.1 manual. Some things it mentions may not be in this release.

NAME

XStringToKeysym, XKeysymToString, XKeycodeToKeysym, XKeysym-ToKeycode - convert keysyms

SYNTAX

KeySym XStringToKeysym(string)
      char *string;

char *XKeysymToString(keysym)
      KeySym keysym;

KeySym XKeycodeToKeysym(display, keycode, index)
      Display *display;
      KeyCode keycode;
      int index;

KeyCode XKeysymToKeycode(display, keysym)
      Display *display;
      KeySym keysym;

ARGUMENTS

display Specifies the connection to the XWIN server.

index Specifies the element of KeyCode vector.

keycode Specifies the KeyCode.

keysym Specifies the KeySym that is to be searched for or converted.

string    Specifies the name of the KeySym that is to be
          converted.

DESCRIPTION

     Valid KeySym names are listed in <X11/keysymdef.h> by remov-
     ing the XK_ prefix from each name.  If the specified string
     does not match a valid KeySym, XStringToKeysym returns
     NoSymbol.

     The returned string is in a static area and must not be
     modified.  If the specified KeySym is not defined, XKeysym-
     ToString returns a NULL.

     The XKeycodeToKeysym function uses internal Xlib tables and
     returns the KeySym defined for the specified KeyCode and the
     element of the KeyCode vector.  If no symbol is defined,
     XKeycodeToKeysym returns NoSymbol.

     If the specified KeySym is not defined for any KeyCode,
     XKeysymToKeycode returns zero.

XWIN 3.0               Last change: 9/1/88                 .ie t

SEE ALSO

     XLookupKeysym(3X11)
     Xlib - C Language X Interface

XWIN 3.0               Last change: 9/1/88                 .ie t

XWIN 3.0               Last change: 9/1/88                 .ie t