Changeset 643 for abuse/trunk/src/imlib/input.cpp
- Timestamp:
- May 13, 2011, 9:13:53 AM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
abuse/trunk/src/imlib/input.cpp
r579 r643 113 113 } 114 114 115 void button_box::handle_event( event &ev, image *screen, InputManager *im)115 void button_box::handle_event(Event &ev, image *screen, InputManager *im) 116 116 { 117 117 switch (ev.type) … … 268 268 } 269 269 270 void text_field::handle_event( event &ev, image *screen, InputManager *im)270 void text_field::handle_event(Event &ev, image *screen, InputManager *im) 271 271 { 272 272 int xx; … … 293 293 draw_text(screen); 294 294 draw_cur(wm->bright_color(),screen); 295 wm-> push_event(new event(id,(char *)this));295 wm->Push(new Event(id,(char *)this)); 296 296 } break; 297 297 default : if (ev.key>=' ' && ev.key<='~') … … 306 306 draw_text(screen); 307 307 draw_cur(wm->bright_color(),screen); 308 wm-> push_event(new event(id,(char *)this));308 wm->Push(new Event(id,(char *)this)); 309 309 } break; 310 310 } … … 366 366 { up=!up; } 367 367 368 void button::handle_event( event &ev, image *screen, InputManager *im)368 void button::handle_event(Event &ev, image *screen, InputManager *im) 369 369 { 370 370 if ((ev.type==EV_KEY && ev.key==13) || (ev.type==EV_MOUSE_BUTTON && … … 376 376 draw_first(screen); 377 377 draw(act,screen); 378 wm-> push_event(new event(id,(char *)this));378 wm->Push(new Event(id,(char *)this)); 379 379 } 380 380 } … … 385 385 area(x1,y1,x2,y2); 386 386 if (active!=act && act_id!=-1 && active) 387 wm-> push_event(new event(act_id,NULL));387 wm->Push(new Event(act_id,NULL)); 388 388 389 389 if (pressed)
Note: See TracChangeset
for help on using the changeset viewer.