Ignore:
Timestamp:
Mar 23, 2006, 7:36:59 PM (15 years ago)
Author:
Sam Hocevar
Message:
  • Massive rework of the event handling code, as per the TODO list.
File:
1 edited

Legend:

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

    r677 r681  
    262262    {
    263263#ifdef LIBCACA
    264       switch (caca_get_event(kk, CACA_EVENT_KEY_PRESS))
     264      struct caca_event ev;
     265      if(caca_get_event(kk, CACA_EVENT_KEY_PRESS, &ev))
    265266        {
    266           case CACA_EVENT_KEY_PRESS | CACA_KEY_ESCAPE: return;
    267           case CACA_EVENT_KEY_PRESS | ' ': pause = !pause;
     267          switch(ev.data.key.c)
     268            {
     269                case CACA_KEY_ESCAPE: return;
     270                case ' ': pause = !pause;
     271            }
    268272        }
    269 
    270273#endif
    271274      drawfire ();
Note: See TracChangeset for help on using the changeset viewer.