XKeysymToKeycode − convert a keysym to the appropriate keycode.
Synopsis
KeyCode XKeysymToKeycode(display, keysym)
Display *display;
Keysym keysym;
Arguments
displaySpecifies a connection to an X server; returned from XOpenDisplay().
keysymSpecifies the keysym that is to be searched for.
Description
XKeysymToKeycode() returns the keycode corresponding to the specified keysym in the current mapping. If the specified keysym is not defined for any keycode, XKeysymToKeycode() returns zero.
See Also
IsCursorKey(), IsFunctionKey(), IsKeypadKey(), IsMiscFunctionKey(), IsModifierKey(), IsPFKey(), XChangeKeyboardMapping(), XDeleteModifiermapEntry(), XDisplayKeycodes(), XFreeModifiermap(), XGetKeyboardMapping(), XGetModifierMapping(), XInsertModifiermapEntry(), XKeycodeToKeysym(), XKeysymToString(), XLookupKeysym(), XLookupString(), XNewModifierMap, XQueryKeymap(), XRebindKeySym, XRefreshKeyboardMapping(), XSetModifierMapping(), XStringToKeysym().
Copyright O’Reilly & Assoc. —