[Xcb] xcb equivalent of XKeysymToKeycode?

Peter Harris git at peter.is-a-geek.org
Mon Oct 11 18:21:14 PDT 2010


On Mon, Oct 11, 2010 at 7:41 PM, Jon Shemitz wrote:
> Is there an xcb equivalent of XKeysymToKeycode?

xcb_get_keyboard_mapping() is the xcb equivalent of a bunch of Xlib
functions, all of which are wrappers around GetKeyboardMapping (and/or
a cached copy it).

See also xcb/util xcb_keysyms.h (apt-get install  libxcb-keysyms0-dev
on Debian Stable, your distro may vary), which may or may not be
helpful. xcb_key_symbols_get_keycode looks promising, although I
haven't ever used it myself.

Peter Harris


More information about the Xcb mailing list