caca_event Struct Reference

Handling of user events. More...


Data Fields

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


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.