Skip to content

Commit

Permalink
Fixed event responder in InFine. InFine was responding to non-key dow…
Browse files Browse the repository at this point in the history
…n events and the last event pump was broken. Due to recent changes in the handling input events.
  • Loading branch information
danij committed Sep 4, 2006
1 parent 04bc460 commit 3068e0c
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions doomsday/plugins/common/src/f_infine.c
Expand Up @@ -1293,7 +1293,7 @@ void FI_Ticker(void)
// Execute commands until a wait time is set or we reach the end of
// the script. If the end is reached, the finale really ends (FI_End).
while(fi_active && !fi->wait && !fi->waitingtext && !fi->waitingpic && !last)
last = FI_ExecuteNextCommand();
last = !FI_ExecuteNextCommand();

// The script has ended!
if(last)
Expand Down Expand Up @@ -1387,12 +1387,11 @@ int FI_Responder(event_t *ev)
return FI_AteEvent(ev);

// We are only interested in key/button down presses.
if(ev->type != EV_KEY && ev->type != EV_MOUSE_BUTTON &&
ev->type != EV_JOY_BUTTON && ev->state != EVS_DOWN)
if(ev->type != EV_KEY || ev->state != EVS_DOWN)
return FI_AteEvent(ev);

// We're not interested in the Escape key.
if(ev->type == EV_KEY && ev->data1 == DDKEY_ESCAPE)
if(ev->type == EV_KEY && ev->state == EVS_DOWN && ev->data1 == DDKEY_ESCAPE)
return FI_AteEvent(ev);

// Servers tell clients to skip.
Expand Down

0 comments on commit 3068e0c

Please sign in to comment.