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

    r677 r681  
    9393    for(;;)
    9494    {
    95         switch(caca_get_event(kk, CACA_EVENT_KEY_PRESS))
    96         {
    97             case CACA_EVENT_KEY_PRESS | CACA_KEY_ESCAPE: goto end;
    98             case CACA_EVENT_KEY_PRESS | ' ': pause = !pause;
     95        struct caca_event ev;
     96        if(caca_get_event(kk, CACA_EVENT_KEY_PRESS, &ev))
     97        {
     98            switch(ev.data.key.c)
     99            {
     100                case CACA_KEY_ESCAPE: goto end;
     101                case ' ': pause = !pause;
     102            }
    99103        }
    100104
Note: See TracChangeset for help on using the changeset viewer.