Ignore:
Timestamp:
Apr 18, 2006, 10:19:42 AM (15 years ago)
Author:
Sam Hocevar
Message:
  • Handle CACA_EVENT_QUIT in the event test program.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • libcaca/trunk/test/event.c

    r777 r802  
    119119        character = ev->data.key.c;
    120120        cucul_printf(qq, x, y, "CACA_EVENT_KEY_PRESS 0x%02x (%c)", character,
    121                      (character > 0x20 && character < 0x80) ? character : '?');
     121                     (character > 0x1f && character < 0x80) ? character : '?');
    122122        break;
    123123    case CACA_EVENT_KEY_RELEASE:
    124124        character = ev->data.key.c;
    125125        cucul_printf(qq, x, y, "CACA_EVENT_KEY_RELEASE 0x%02x (%c)", character,
    126                      (character > 0x20 && character < 0x80) ? character : '?');
     126                     (character > 0x1f && character < 0x80) ? character : '?');
    127127        break;
    128128    case CACA_EVENT_MOUSE_MOTION:
     
    142142                     ev->data.resize.w, ev->data.resize.h);
    143143        break;
     144    case CACA_EVENT_QUIT:
     145        cucul_printf(qq, x, y, "CACA_EVENT_QUIT");
     146        break;
    144147    default:
    145148        cucul_printf(qq, x, y, "CACA_EVENT_UNKNOWN");
Note: See TracChangeset for help on using the changeset viewer.