Copyright (c) 1999, Oracle and/or its affiliates.

Permission is hereby granted, free of charge, to any person obtaining a
copy of this software and associated documentation files (the "Software"),
to deal in the Software without restriction, including without limitation
the rights to use, copy, modify, merge, publish, distribute, sublicense,
and/or sell copies of the Software, and to permit persons to whom the
Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice (including the next
paragraph) shall be included in all copies or substantial portions of the
Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
DEALINGS IN THE SOFTWARE.

XkbLookupKeySym __libmansuffix__ __xorgversion__ "XKB FUNCTIONS"
NAME
XkbLookupKeySym - Find the symbol associated with a key for a particular state
SYNOPSIS

Bool XkbLookupKeySym "(\^Display *" "dpy" "\^," "KeyCode " "key" "\^," "unsigned int " "state" "\^," "unsigned int *" "mods_rtrn" "\^," "KeySym *" "sym_rtrn" "\^);"

ARGUMENTS

dpy connection to X server

key key for which symbols are to be found

state state for which symbol should be found

mods_rtrn backfilled with consumed modifiers

sym_rtrn backfilled with symbol associated with key + state

DESCRIPTION

XkbLookupKeySym is the equivalent of the core XLookupKeySym function. For the core keyboard, given a keycode key and an Xkb state state, XkbLookupKeySym returns the symbol associated with the key in sym_rtrn and the list of modifiers that should still be applied in mods_rtrn. The state parameter is the state from a KeyPress or KeyRelease event. XkbLookupKeySym returns True if it succeeds.

"SEE ALSO"
XLookupKeySym (__libmansuffix__)