Changeset 2049 for libcaca/trunk/src/cacaview.c
- Timestamp:
- Nov 25, 2007, 12:11:54 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
libcaca/trunk/src/cacaview.c
r2035 r2049 146 146 while(event) 147 147 { 148 if( ev.type& CACA_EVENT_MOUSE_PRESS)148 if(caca_get_event_type(&ev) & CACA_EVENT_MOUSE_PRESS) 149 149 { 150 if( ev.data.mouse.button== 1)150 if(caca_get_event_mouse_button(&ev) == 1) 151 151 { 152 152 if(items) current = (current + 1) % items; 153 153 reload = 1; 154 154 } 155 else if(ev.data.mouse.button== 2)155 if(caca_get_event_mouse_button(&ev) == 2) 156 156 { 157 157 if(items) current = (items + current - 1) % items; … … 159 159 } 160 160 } 161 else if(ev.type & CACA_EVENT_KEY_PRESS) switch(ev.data.key.ch) 161 else if(caca_get_event_type(&ev) & CACA_EVENT_KEY_PRESS) 162 switch(caca_get_event_key_ch(&ev)) 162 163 { 163 164 case 'n': … … 287 288 break; 288 289 } 289 else if( ev.type== CACA_EVENT_RESIZE)290 else if(caca_get_event_type(&ev) == CACA_EVENT_RESIZE) 290 291 { 291 292 caca_refresh_display(dp); 292 ww = ev.data.resize.w;293 wh = ev.data.resize.h;293 ww = caca_get_event_resize_width(&ev); 294 wh = caca_get_event_resize_height(&ev); 294 295 update = 1; 295 296 set_zoom(zoom); 296 297 } 297 else if( ev.type& CACA_EVENT_QUIT)298 else if(caca_get_event_type(&ev) & CACA_EVENT_QUIT) 298 299 quit = 1; 299 300
Note: See TracChangeset
for help on using the changeset viewer.