XCB_INPUT_GET_DEVICE_BUTTON_MAPPING(3)
π xcb_input_get_device_button_mapping β the tea β
okay bestie, welcome to xcb_input_get_device_button_mapping, a lil' request from xcb_input_get...button_mapping(3) (that's the manual name, she's long, we love her). this one's for when you wanna peek at how a device's buttons are mapped. no cap. β¨
πΈ NAME πΈ
xcb_input_get_device_button_mapping β (the original page is shy and leaves this blank, and honestly? we respect the mystery π«Ά)
β¨ SYNOPSIS β¨
#include <xcb/xinput.h>
π Request function
xcb_input_get_device_button_mapping_cookie_t
xcb_input_get_device_button_mapping(xcb_connection_t *conn,
uint8_t device_id);
π¦ Reply datastructure
typedef struct xcb_input_get_device_button_mapping_reply_t {
uint8_t response_type;
uint8_t xi_reply_type;
uint16_t sequence;
uint32_t length;
uint8_t map_size;
uint8_t pad0[23];
} xcb_input_get_device_button_mapping_reply_t;
π Reply function
xcb_input_get_device_button_mapping_reply_t
*xcb_input_get_device_button_mapping_reply(xcb_connection_t *conn,
xcb_input_get_device_button_mapping_cookie_t cookie,
xcb_generic_error_t **e);
π Reply accessors
uint8_t *xcb_input_get_device_button_mapping_map(const
xcb_input_get_device_button_mapping_request_t *reply);
int xcb_input_get_device_button_mapping_map_length(const
xcb_input_get_device_button_mapping_reply_t *reply);
xcb_generic_iterator_t xcb_input_get_device_button_mapping_map_end(const
xcb_input_get_device_button_mapping_reply_t *reply); uint8_t
*xcb_input_get_device_button_mapping_pad_1 (const
xcb_input_get_device_button_mapping_request_t *reply)
π REQUEST ARGUMENTS π
connβ the XCB connection to X11, your main character link to the server π«device_idβ TODO: NOT YET DOCUMENTED. (the manpage literally said that, bestie, we're just being honest π« )
π REPLY FIELDS π
response_typeβ the type of this reply, and in this case it'sXCB_INPUT_GET_DEVICE_BUTTON_MAPPING. this field also lives in thexcb_generic_reply_tso you can tell your replies apart from each other, very "who is she" energy πsequenceβ the sequence number of the last request processed by the X11 server. keeping receipts, fr fr π§Ύlengthβ the length of the reply, in words. and reminder: a word is 4 bytes πxi_reply_typeβ TODO: NOT YET DOCUMENTED. π«₯map_sizeβ TODO: NOT YET DOCUMENTED. π«₯
π DESCRIPTION π
...the original page has nothing here. literally nothing. an empty section, a vibe, a blank canvas. we're keeping it exactly as iconic (and as empty) as it was β¨
π₯ RETURN VALUE π₯
Returns an xcb_input_get_device_button_mapping_cookie_t. that's your lil' cookie, hold onto her πͺ
Errors have to be handled when you call the reply function xcb_input_get_device_button_mapping_reply.
If you'd rather handle errors in the event loop instead, use xcb_input_get_device_button_mapping_unchecked. See xcb-requests(3) for details, iykyk π
π ERRORS π
This request does never generate any errors. not one. zero. she's unproblematic, she's at peace, we stan πΈ
π SEE ALSO π
(no entries on the original page β an empty section, and we're honoring it, periodt)
π«Ά AUTHOR π«Ά
Generated from xinput.xml. Contact xcb@lists.freedesktop.org for corrections and improvements. π
and that's the whole page, bestie!! this one came from X Version 11, libxcb 1.17.0 π slay, go map some buttons, you've got this π
π¦ 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