XCB_INPUT_DEVICE_BUTTON_STATE_NOTIFY_EVENT_T(3)

πŸ“¦
version 1.17.0 Β· 4 versions
, in alpine 3.22, alpine 3.23, alpine 3.24, arch rolling, centos-stream 10, debian trixie, fedora 43, fedora 44, nixpkgs unstable, opensuse-leap 16.0, ubuntu questing, ubuntu resolute, ubuntu stonking

πŸ’– xcb_input_device_button_state_notify_event_t(3) πŸ’–

okay bestie, so this is an XCB Events page from section 3 of the manual β€” yes, the whole xcb_input_devi...notify_event_t family, the one with the dramatic ellipsis in the header. we're talking about xcb_input_device_button_state_notify_event_t, and honestly? it's giving "small struct, big feelings". let's get into it 🫢


✨ NAME ✨

xcb_input_device_button_state_notify_event_t β€” (yeah, the original literally leaves it at that, no explanation, iconic mysterious energy πŸ’…)


🌸 SYNOPSIS 🌸

#include <xcb/xinput.h>

πŸ¦‹ Event datastructure

typedef struct xcb_input_device_button_state_notify_event_t {
    uint8_t  response_type;
    uint8_t  device_id;
    uint16_t sequence;
    uint8_t  buttons[28];
} xcb_input_device_button_state_notify_event_t;

like. look at her. four fields, one of them is 28 whole bytes of buttons. she's compact, she's tidy, she's serving πŸŽ€


πŸ”₯ EVENT FIELDS πŸ”₯

  • response_type β€” the type of this event, and in this case it's XCB_INPUT_DEVICE_BUTTON_STATE_NOTIFY. this field is also present in the xcb_generic_event_t, so you can use it to tell events apart from each other. it's the little name tag at the party so you know who just walked in πŸ’–
  • sequence β€” the sequence number of the last request processed by the X11 server. your receipt number, basically 🧾✨
  • device_id β€” NOT YET DOCUMENTED. no cap, the manpage really just says that. we know nothing. she's a mystery πŸ™ˆ
  • buttons β€” NOT YET DOCUMENTED. also a mystery. 28 bytes of pure undisclosed potential πŸ’€

🌈 DESCRIPTION 🌈

(empty. literally nothing here. the original said nothing and honestly? respect. sometimes the vibe is silence ✨)


πŸ‘‘ SEE ALSO πŸ‘‘

(also empty β€” there are no SEE ALSO references on this page, bestie, so don't go looking for cross-links that aren't there πŸ¦‹)


πŸ’œ AUTHOR πŸ’œ

generated from xinput.xml. if you've got corrections or improvements, hit up xcb@lists.freedesktop.org β€” they're literally waiting for your notes 🫢


and that's the whole page, periodt πŸ’… this was X Version 11, from libxcb 1.17, and yeah the footer date situation is exactly as mysterious as the device_id field. stay slaying, stay documenting the undocumented 🌸⭐