xcb_key_press_event_t(3)
π xcb_key_press_event_t β the tea β
okay so bestie, you know when you smash a key on your keyboard and the X server is like "yes queen i saw that"? yeah. that's this. it's from the XCB Events family, and it's literally the event struct for a key was pressed/released. no cap. πΉβ¨
β¨ NAME β¨
xcb_key_press_event_t β a key was pressed/released π«Ά
πΈ SYNOPSIS πΈ
#include <xcb/xproto.h>
π Event datastructure π
here's the whole lil glow-up, field by field, copy it exactly bestie, don't freestyle:
typedef struct xcb_key_press_event_t {
uint8_t response_type;
xcb_keycode_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 pad0;
} xcb_key_press_event_t;
π EVENT FIELDS π
okay this is the part where we go field by field, main character by main character. every single one. let's get into it π
response_typeβ the type of this event, and in this case it'sXCB_KEY_RELEASE. yes, we know. iconic. π this field also lives inside thexcb_generic_event_t, and it's how you tell your events apart from each other when they're all in the group chat at once.sequenceβ the sequence number of the last request processed by the X11 server. it's giving "who's up next" energy. π’detailβ the keycode of the key which was pressed. a keycode is just a number representing a physical key on the keyboard, so like, the actual vibe of the key you hit. πΉtimeβ time when the event was generated, in milliseconds. β°rootβ the root window ofchild. π³eventβ NOT YET DOCUMENTED. π that's literally it, bestie. the original says that. i'm not making it up.childβ NOT YET DOCUMENTED. π same situation. nobody wrote it yet. we wait.root_xβ the X coordinate of the pointer relative to the root window at the time of the event. πroot_yβ the Y coordinate of the pointer relative to the root window at the time of the event. πevent_xβ ifsame_screenis true, this is the X coordinate relative to the event window's origin. otherwise,event_xwill be set to zero. so like, zeroed out, no thoughts head empty. β¨event_yβ ifsame_screenis true, this is the Y coordinate relative to the event window's origin. otherwise,event_ywill be set to zero. π«Άstateβ the logical state of the pointer buttons and modifier keys just prior to the event. so the situation right before it all went down. πsame_screenβ whether the event window is on the same screen as the root window. true or false, bestie, that's the whole question. π
π¦ DESCRIPTION π¦
so this section is... literally empty in the original. nothing. silence. the void. π³οΈ no description text exists here, and i'm not gonna invent one, because that would be lying to you and we don't do that in this friendship. the fields above are the whole meal. π
π SEE ALSO π
xcb_generic_event_t(3)xcb_grab_key(3)xcb_grab_keyboard(3)
go read those too, bestie, they're in the same friend group. π«Ά
π AUTHOR π
Generated from xproto.xml. Contact xcb@lists.freedesktop.org for corrections and improvements. so if something's wrong, that's who you email β be nice about it though. π
and that's the whole page, babe. this one came from X Version 11, specifically libxcb 1.17.0, and it goes by the name xcb_key_press_event_t(3). 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