xcb_input_get...e_key_mapping(3)
π xcb_input_get...e_key_mapping β XCB Requests, bestie
okay so bestie, welcome to the manual page for xcb_input_get...e_key_mapping(3) β that's the XCB Requests one, in case you were wondering which manual you just opened. it's giving "libxcb's xinput corner" and honestly? we're obsessed. this is where you go when you need to ask the X server "hey queen, what keysyms live on this device's keycodes?" π
πΈ NAME πΈ
xcb_input_get_device_key_mapping β (no description in the original, it just is, iconic behaviour, no notes π
)
β¨ SYNOPSIS β¨
#include <xcb/xinput.h>
π¦ Request function π¦
xcb_input_get_device_key_mapping_cookie_t
xcb_input_get_device_key_mapping(xcb_connection_t *conn,
uint8_t device_id, xcb_input_key_code_t first_keycode,
uint8_t count);
π¦ Reply datastructure π¦
typedef struct xcb_input_get_device_key_mapping_reply_t {
uint8_t response_type;
uint8_t xi_reply_type;
uint16_t sequence;
uint32_t length;
uint8_t keysyms_per_keycode;
uint8_t pad0[23];
} xcb_input_get_device_key_mapping_reply_t;
π¦ Reply function π¦
xcb_input_get_device_key_mapping_reply_t
*xcb_input_get_device_key_mapping_reply(xcb_connection_t *conn,
xcb_input_get_device_key_mapping_cookie_t cookie,
xcb_generic_error_t **e);
π¦ Reply accessors π¦
xcb_keysym_t *xcb_input_get_device_key_mapping_keysyms(const
xcb_input_get_device_key_mapping_request_t *reply);
int xcb_input_get_device_key_mapping_keysyms_length(const
xcb_input_get_device_key_mapping_reply_t *reply);
xcb_generic_iterator_t
xcb_input_get_device_key_mapping_keysyms_end(const
xcb_input_get_device_key_mapping_reply_t *reply);
π₯ REQUEST ARGUMENTS π₯
connβ the XCB connection to X11. your lil hotline to the server, periodt πdevice_idβ TODO: NOT YET DOCUMENTED. (the docs said "figure it out" and honestly, same π)first_keycodeβ TODO: NOT YET DOCUMENTED. (mystery behaviour, we love a secretive king π)countβ TODO: NOT YET DOCUMENTED. (again, no notes, the docs are gatekeeping π)
π REPLY FIELDS π
response_typeβ the type of this reply, and in this case it'sXCB_INPUT_GET_DEVICE_KEY_MAPPING. this field is also present in thexcb_generic_reply_tand can be used to tell replies apart from each other. it's basically the reply's little name tag at the function, so you know who's who π«Άsequenceβ the sequence number of the last request processed by the X11 server. the timeline, fr fr βlengthβ the length of the reply, in words (a word is 4 bytes). math girlies rise π§xi_reply_typeβ TODO: NOT YET DOCUMENTED. (undocumented and unbothered π)keysyms_per_keycodeβ TODO: NOT YET DOCUMENTED. (the mystery continues, lowkey iconic π)
π DESCRIPTION π
(that's it. that's the description. the original literally left this blank β main character energy, saying nothing and letting the vibes speak π)
π RETURN VALUE π
Returns an xcb_input_get_device_key_mapping_cookie_t. Errors have to be handled when calling the reply function xcb_input_get_device_key_mapping_reply.
heads up bestie β if you want to handle errors in the event loop instead, usexcb_input_get_device_key_mapping_unchecked. seexcb-requests(3)for details. β¨
π ERRORS π
This request does never generate any errors. not one. zero. the drama-free queen we all aspire to be π
π SEE ALSO π
(empty in the original β it's giving "no thoughts, head empty," and we respect it π¦)
πΈ AUTHOR πΈ
Generated from xinput.xml. Contact xcb@lists.freedesktop.org for corrections and improvements.
and that's the whole page, bestie!! π this one came to you from X Version 11, libxcb 1.17.0, and it's filed under xcb_input_get...e_key_mapping(3). go forth and slay your key mappings, mwah πβ¨
π¦ where this page comes from
- alpine 3.22: libxcb-doc 1.17.0-r0 Β· MIT
- alpine 3.23: libxcb-doc 1.17.0-r1 Β· MIT
- alpine 3.24: libxcb-doc 1.17.0-r2 Β· MIT
- arch rolling: libxcb 1.17.0-1 Β· X11
- centos-stream 10: libxcb-devel 1.17.0-3.el10 Β· X11
- debian trixie: libxcb-doc 1.17.0-2
- fedora 43: libxcb-devel 1.17.0-6.fc43 Β· X11
- fedora 43: libxcb-devel 1.17.0-6.fc43 Β· X11
- fedora 44: libxcb-devel 1.17.0-7.fc44 Β· X11
- fedora 44: libxcb-devel 1.17.0-7.fc44 Β· X11
- nixpkgs unstable: libxcb 1.17.0
- opensuse-leap 16.0: libxcb-devel-doc 1.17.0-160000.2.2 Β· MIT
- ubuntu questing: libxcb-doc 1.17.0-2build1
- ubuntu resolute: libxcb-doc 1.17.0-2ubuntu1
- ubuntu stonking: libxcb-doc 1.17.0-2ubuntu1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms