Ignore:
Timestamp:
May 13, 2011, 1:36:00 PM (12 years ago)
Author:
Sam Hocevar
Message:

imlib: clean up EventHandler? and JCMouse.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • abuse/trunk/src/endgame.cpp

    r644 r645  
    363363    }
    364364
    365     if (wm->event_waiting())
     365    if (wm->IsPending())
    366366      wm->get_event(ev);
    367367
     
    394394    time_marker now; while (now.diff_time(&start)<0.18) now.get_time(); start.get_time();
    395395
    396     while (wm->event_waiting() && ev.type!=EV_KEY) wm->get_event(ev);
     396    while (wm->IsPending() && ev.type!=EV_KEY) wm->get_event(ev);
    397397  }
    398398
     
    458458    wm->flush_screen();
    459459    time_marker now; while (now.diff_time(&start)<0.18) now.get_time(); start.get_time();
    460     while (wm->event_waiting() && ev.type!=EV_KEY) wm->get_event(ev);
     460    while (wm->IsPending() && ev.type!=EV_KEY) wm->get_event(ev);
    461461  }
    462462
     
    508508    wm->flush_screen();
    509509    time_marker now; while (now.diff_time(&start)<0.18) now.get_time(); start.get_time();
    510     while (wm->event_waiting() && ev.type!=EV_KEY) wm->get_event(ev);
     510    while (wm->IsPending() && ev.type!=EV_KEY) wm->get_event(ev);
    511511  }
    512512
Note: See TracChangeset for help on using the changeset viewer.