Browse Source

* Allow exiting cacafire using the window manager

tags/v0.99.beta14
Pascal Terjan pterjan 17 years ago
parent
commit
226717b7f8
1 changed files with 3 additions and 1 deletions
  1. +3
    -1
      src/aafire.c

+ 3
- 1
src/aafire.c View File

@@ -270,8 +270,10 @@ game (void)
{
#ifdef LIBCACA
caca_event_t ev;
if(caca_get_event(dp, CACA_EVENT_KEY_PRESS, &ev, 0))
if(caca_get_event(dp, CACA_EVENT_KEY_PRESS|CACA_EVENT_QUIT, &ev, 0))
{
if (caca_get_event_type(&ev) & CACA_EVENT_QUIT)
return;
switch(caca_get_event_key_ch(&ev))
{
case CACA_KEY_CTRL_C:


Loading…
Cancel
Save