caca_event(3caca)

caca_event(3caca) πŸ’–

okay so this is the caca_event(3caca) page from the libcaca manual, and it is literally all about handling of user events. bestie, if you're here, you're probably trying to understand the event struct β€” and yes, it's giving "opaque but iconic". Let's go. πŸ¦‹


NAME ✨

caca_event β€” Handling of user events. πŸŽ€

SYNOPSIS 🌸

#include <caca.h>

Data Fields 🧚

These are the fields, exactly as they appear β€” no cap, no edits, no "I fixed the spacing" behavior:

       enum caca_event_type type
       union {
          struct {
             int x
             int y
             int button
          } mouse
          struct {
             int w
             int h
          } resize
          struct {
             int ch
             uint32_t utf32
             char utf8 [8]
          } key
       } data

Detailed Description πŸ’…

This structure is filled by caca_get_event() when an event is received. It is an opaque structure that should only be accessed through caca_event_get_type() and similar functions. The struct members may no longer be directly accessible in future versions.

⚠️ translation for the group chat: don't go poking at the members directly like it's a public vibe. Use caca_event_get_type() and the similar functions, periodt. Future versions may make those struct members not directly accessible anymore. 😭

Author πŸ‘‘

Generated automatically by Doxygen for libcaca from the source code.


bestie sign-off: this page is from libcaca version 0.99.beta20, dated Wed May 13 2026 09:45:08 β€” slay, and remember: handle your events through the functions. πŸ’–βœ¨

πŸ“¦ where this page comes from