Ignore:
Timestamp:
Nov 25, 2007, 12:11:54 PM (12 years ago)
Author:
Sam Hocevar
Message:
  • Made the caca_event_t structure opaque and created a whole bunch of functions to access its real data. This is a big API change that will break your software, sorry :(
File:
1 edited

Legend:

Unmodified
Added
Removed
  • libcaca/trunk/src/cacadraw.c

    r1462 r2049  
    8181        while(caca_get_event(dp, CACA_EVENT_ANY, &ev, -1))
    8282        {
    83             switch(ev.type)
     83            switch(caca_get_event_type(&ev))
    8484            {
    8585                case CACA_EVENT_QUIT:
    8686                    goto quit;
    8787                case CACA_EVENT_KEY_PRESS:
    88                     switch(ev.data.key.ch)
     88                    switch(caca_get_event_key_ch(&ev))
    8989                    {
    9090                    case CACA_KEY_LEFT: dx -= 2; break;
Note: See TracChangeset for help on using the changeset viewer.