XtGetKeysymTable(3) XT FUNCTIONS XtGetKeysymTable(3)

# [NAME](#NAME)

XtGetKeysymTable, XtKeysymToKeycodeList - query keysyms and keycodes

# [SYNTAX](#SYNTAX)

#include &lt;X11/Intrinsic.h&gt;

KeySym* XtGetKeysymTable(Display* *display*, KeyCode* *min\_keycode\_return*, int \**keysyms\_per\_keycode\_return*);

void XtKeysymToKeycodeList(Display* *display*, KeySym *keysym*, KeyCode\** *keycodes\_return*, Cardinal* *keycount\_return*);

# [ARGUMENTS](#ARGUMENTS)

[*display*](#display)

Specifies the display whose table is required.

[*min\_keycode\_return*](#min_keycode_return)

Returns the minimum KeyCode valid for the display.

[*keysyms\_per\_keycode\_return*](#keysyms_per_keycode_return)

Returns the number of KeySyms stored for each KeyCode.

[*keysym*](#keysym)

Specifies the KeySym for which to search.

[*keycodes\_return*](#keycodes_return)

Returns a list of KeyCodes that have *keysym* associated with them, or NULL if *keycount\_return* is 0.

[*keycount\_return*](#keycount_return)

Returns the number of KeyCodes in the keycode list.

# [DESCRIPTION](#DESCRIPTION)

**XtGetKeysymTable** returns a pointer to the Intrinsics' copy of the server's KeyCode-to-KeySym table. This table must not be modified.

The **XtKeysymToKeycodeList** procedure returns all the KeyCodes that have *keysym* in their entry for the keyboard mapping table associated with *display*. The caller should free the storage pointed to by *keycodes\_return* using **XtFree** when it is no longer useful.

# [SEE ALSO](#SEE_ALSO)

*X Toolkit Intrinsics - C Language Interface*  
*Xlib - C Language X Interface*

libXt 1.3.1 X Version 11

---

Document: XtGetKeysymTable(3) from libxt 1.3.1-r11 (Chainguard OS)
Source: https://gitlab.freedesktop.org/xorg/lib/libxt.git
