12.07.2015 Views

Xlib − C Language X Interface

Xlib − C Language X Interface

Xlib − C Language X Interface

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

<strong>Xlib</strong> − C LibraryX11, Release 6.7 DRAFTKeySym XKeycodeToKeysym (display, keycode, index)Display *display;KeyCode keycode;int index;displaykeycodeindexSpecifies the connection to the X server.Specifies the KeyCode.Specifies the element of KeyCode vector.The XKeycodeToKeysym function uses internal <strong>Xlib</strong> tables and returns the KeySym defined forthe specified KeyCode and the element of the KeyCode vector. Ifnosymbol is defined, XKeycodeToKeysymreturns NoSymbol.To obtain a KeyCode for a key having a specific KeySym, use XKeysymToKeycode.KeyCode XKeysymToKeycode (display, keysym)Display *display;KeySym keysym;displaykeysymSpecifies the connection to the X server.Specifies the KeySym that is to be searched for.If the specified KeySym is not defined for any KeyCode, XKeysymToKeycode returns zero.The mapping between KeyCodes and KeySyms is cached internal to <strong>Xlib</strong>. When this informationis changed at the server, an<strong>Xlib</strong> function must be called to refresh the cache. To refresh thestored modifier and keymap information, use XRefreshKeyboardMapping.XRefreshKeyboardMapping(event_map)XMappingEvent *event_map;event_mapSpecifies the mapping event that is to be used.The XRefreshKeyboardMapping function refreshes the stored modifier and keymap information.You usually call this function when a MappingNotify event with a request member ofMappingKeyboard or MappingModifier occurs. The result is to update <strong>Xlib</strong>’s knowledge ofthe keyboard.To obtain the uppercase and lowercase forms of a KeySym, use XConvertCase.401

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!