xcb_input_button_press_event_t(3)
π xcb_input_button_press_event_t π
okay so bestie, welcome to the libxcb corner of the X11 universe β this one lives in the XCB Events manual, section 3, and it's literally just the event struct for input button presses. yes, the NAME section is genuinely just the name with a lil dash and nothing after it, no cap, they left the description slot empty. we move.
β¨ SYNOPSIS β¨
first things first, you gotta pull in the header:
#include <xcb/xinput.h>
π¦ Event datastructure π¦
here's the whole struct, character for character, don't let anyone tell you otherwise:
typedef struct xcb_input_button_press_event_t {
uint8_t response_type;
uint8_t extension;
uint16_t sequence;
uint32_t length;
uint16_t event_type;
xcb_input_device_id_t deviceid;
xcb_timestamp_t time;
uint32_t detail;
xcb_window_t root;
xcb_window_t event;
xcb_window_t child;
uint32_t full_sequence;
xcb_input_fp1616_t root_x;
xcb_input_fp1616_t root_y;
xcb_input_fp1616_t event_x;
xcb_input_fp1616_t event_y;
uint16_t buttons_len;
uint16_t valuators_len;
xcb_input_device_id_t sourceid;
uint8_t pad0[2];
uint32_t flags;
xcb_input_modifier_info_t mods;
xcb_input_group_info_t group;
} xcb_input_button_press_event_t;
π EVENT FIELDS π
time to vibe check every single member, one by one, no skips:
response_typeβ the type of this event, in this caseXCB_INPUT_MOTION. this field is also present in thexcb_generic_event_tand can be used to tell events apart from each other. (yes the docs really sayXCB_INPUT_MOTIONon the button-press page. iconic of them. we're reporting it exactly as written, don't shoot the messenger π)sequenceβ the sequence number of the last request processed by the X11 server.extensionβ NOT YET DOCUMENTED.lengthβ NOT YET DOCUMENTED.event_typeβ NOT YET DOCUMENTED.deviceidβ NOT YET DOCUMENTED.timeβ NOT YET DOCUMENTED.detailβ NOT YET DOCUMENTED.rootβ NOT YET DOCUMENTED.eventβ NOT YET DOCUMENTED.childβ NOT YET DOCUMENTED.full_sequenceβ NOT YET DOCUMENTED.root_xβ NOT YET DOCUMENTED.root_yβ NOT YET DOCUMENTED.event_xβ NOT YET DOCUMENTED.event_yβ NOT YET DOCUMENTED.buttons_lenβ NOT YET DOCUMENTED.valuators_lenβ NOT YET DOCUMENTED.sourceidβ NOT YET DOCUMENTED.flagsβ NOT YET DOCUMENTED.modsβ NOT YET DOCUMENTED.groupβ NOT YET DOCUMENTED.
ngl the "NOT YET DOCUMENTED" era is giving unfinished group project energy π but that's genuinely all the page says for those fields, so that's what you get. no inventing lore, bestie, we keep it real.
π DESCRIPTION π
...so the DESCRIPTION section is empty. completely. a blank canvas. main character silence. there is literally nothing here, and we are not about to make stuff up about it. periodt. π
π₯ SEE ALSO π₯
also empty, bestie. nothing referenced, nothing linked, just vibes and a whole lot of blank space. π¦
π AUTHOR π
generated from xinput.xml. contact xcb@lists.freedesktop.org for corrections and improvements β so if something's off, that's your girl to email, fr fr. β¨
and that's the whole page! this was X Version 11, libxcb 1.17.0, and you absolutely ate reading a struct definition all the way to the end, i'm obsessed π«Άπ
π¦ 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