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/cacamoir.c

    r677 r681  
    6969    for(;;)
    7070    {
    71         switch(caca_get_event(kk, CACA_EVENT_KEY_PRESS))
     71        struct caca_event ev;
     72        if(caca_get_event(kk, CACA_EVENT_KEY_PRESS, &ev))
    7273        {
    73             case CACA_EVENT_KEY_PRESS | CACA_KEY_ESCAPE: goto end;
    74             case CACA_EVENT_KEY_PRESS | ' ': pause = !pause;
     74            switch(ev.data.key.c)
     75            {
     76                case CACA_KEY_ESCAPE: goto end;
     77                case ' ': pause = !pause;
     78            }
    7579        }
    7680
Note: See TracChangeset for help on using the changeset viewer.