XCB_INPUT_DEVICE_KEY_PRESS_EVENT_T(3)
π xcb_input_device_key_press_event_t π
okay bestie, so this is a section 3 page from the XCB Events manual β it's xcb_input_device_key_press_event_t, and yeah, the title is a whole mouthful, we're just gonna go with it. It's a struct. A key-press-shaped struct from the X Input extension. Sit with me, we're gonna read the whole thing together π«Ά
πΈ NAME πΈ
xcb_input_device_key_press_event_t β and that's literally all the NAME section says, no lil tagline, no nothing. She's mysterious like that. π
β¨ SYNOPSIS β¨
First, the include, so your compiler doesn't ghost you:
#include <xcb/xinput.h>
π Event datastructure π
And here's the whole struct, every field, in order, no skips:
typedef struct xcb_input_device_key_press_event_t {
uint8_t response_type;
uint8_t detail;
uint16_t sequence;
xcb_timestamp_t time;
xcb_window_t root;
xcb_window_t event;
xcb_window_t child;
int16_t root_x;
int16_t root_y;
int16_t event_x;
int16_t event_y;
uint16_t state;
uint8_t same_screen;
uint8_t device_id;
} xcb_input_device_key_press_event_t;
look at her. fourteen fields. absolutely iconic β¨
π EVENT FIELDS π
okay so this is the part where we go field by field. heads up: a LOT of these are marked NOT YET DOCUMENTED, which is giving "the docs team left us on read" π i'm not gonna make stuff up, so if it says not documented, i'm passing that straight to you. no cap.
response_typeβ this is the event type. and here's the funny part: the manual says in this caseXCB_INPUT_PROXIMITY_OUT. yeah bestie, on a key press event. i don't make the rules, i just relay them π anyway, this field also lives in thexcb_generic_event_t, so you can peek at it to figure out which event you're actually holding.sequenceβ the sequence number of the last request that got processed by the X11 server.detailβNOT YET DOCUMENTED.timeβNOT YET DOCUMENTED.rootβNOT YET DOCUMENTED.eventβNOT YET DOCUMENTED.childβNOT YET DOCUMENTED.root_xβNOT YET DOCUMENTED.root_yβNOT YET DOCUMENTED.event_xβNOT YET DOCUMENTED.event_yβNOT YET DOCUMENTED.stateβNOT YET DOCUMENTED.same_screenβNOT YET DOCUMENTED.device_idβNOT YET DOCUMENTED.
ngl, that's a lot of NOT YET DOCUMENTED and not a lot of answers. it is what it is, we don't invent lore in this house π§
π¦ DESCRIPTION π¦
...okay so. there is a DESCRIPTION section here. it's just empty. completely. she said nothing and left the room π
π SEE ALSO π
also empty bestie π no cross-references, no friends, no links. she's a lone wolf.
π AUTHOR π
Generated from xinput.xml. Contact xcb@lists.freedesktop.org for corrections and improvements.
so if you spot something wrong, that's the inbox, go be the change you wanna see β¨
and that's the whole page, start to finish, no bits left behind π«Ά this one's from X Version 11, libxcb 1.17, and yeah the date on the tin is... also not something the page felt like telling us, so we're rolling with the version and calling it a day. bye bestie, drink water, close your file descriptors ππ
π¦ 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