Ignore:
Timestamp:
May 13, 2011, 9:13:53 AM (11 years ago)
Author:
Sam Hocevar
Message:

imlib: refactor Event and EventHandler?.

File:
1 edited

Legend:

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

    r579 r643  
    7373}
    7474
    75 void ico_switch_button::handle_event(event &ev, image *screen, InputManager *im)
     75void ico_switch_button::handle_event(Event &ev, image *screen, InputManager *im)
    7676{
    7777  if ((ev.type==EV_KEY && ev.key==13) || (ev.type==EV_MOUSE_BUTTON &&
     
    9292
    9393  if (active!=act  && activate_id!=-1 && active)
    94     wm->push_event(new event(activate_id,NULL));
     94    wm->Push(new Event(activate_id,NULL));
    9595
    9696  if (up && !active)
     
    103103
    104104  if (act!=active && active && activate_id!=-1)
    105     wm->push_event(new event(activate_id,NULL));
     105    wm->Push(new Event(activate_id,NULL));
    106106  act=active;
    107107
     
    121121extern int sfx_volume;
    122122
    123 void ico_button::handle_event(event &ev, image *screen, InputManager *im)
     123void ico_button::handle_event(Event &ev, image *screen, InputManager *im)
    124124{
    125125  if ((ev.type==EV_KEY && ev.key==13) || (ev.type==EV_MOUSE_BUTTON &&
     
    130130    up=!up;
    131131    draw(act,screen);
    132     wm->push_event(new event(id,(char *)this));
     132    wm->Push(new Event(id,(char *)this));
    133133    if (S_BUTTON_PRESS_SND)
    134134      cache.sfx(S_BUTTON_PRESS_SND)->play(sfx_volume);
Note: See TracChangeset for help on using the changeset viewer.