Ignore:
Timestamp:
Apr 1, 2006, 4:44:09 PM (14 years ago)
Author:
Sam Hocevar
Message:
  • Merged caca_wait_event() into caca_get_event() and added a timeout parameter to do what both functions did before, and even more.
File:
1 edited

Legend:

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

    r681 r710  
    152152
    153153        if(update)
    154             event = caca_get_event(kk, event_mask, &ev);
     154            event = caca_get_event(kk, event_mask, &ev, 0);
    155155        else
    156             event = caca_wait_event(kk, event_mask, &ev);
     156            event = caca_get_event(kk, event_mask, &ev, -1);
    157157
    158158        while(event)
     
    305305                help = new_help;
    306306
    307             event = caca_get_event(kk, CACA_EVENT_KEY_PRESS, &ev);
     307            event = caca_get_event(kk, CACA_EVENT_KEY_PRESS, &ev, 0);
    308308        }
    309309
Note: See TracChangeset for help on using the changeset viewer.