[Xcb] Handling keyboard events

Jim Crafton jim.crafton at gmail.com
Tue Mar 27 11:27:06 PDT 2007


At the risk of looking foolish for a simple question, how does one get
the key that the user pressed during a XCB_KEY_RELEASE or
XCB_KEY_PRESS event?
The xcb_key_press_event_t struct doesn't appear to have any fields
that would store off this value. Is there a special function that
needs to be called to get this value? XLib had a XKeyEvent and a
function XLookupString() to allow you to get the virtual key code. Is
there anything similar in XCB?

Thanks!

Jim Crafton


More information about the Xcb mailing list