Mercurial > MadButterfly
comparison src/mbaf/animated_menu.c @ 1112:1993e5ae60aa
Rename X_kb_event_t to mb_kb_event_t
author | Thinker K.F. Li <thinker@codemud.net> |
---|---|
date | Wed, 08 Dec 2010 19:17:03 +0800 |
parents | dffecd62817c |
children |
comparison
equal
deleted
inserted
replaced
1111:fa5f71d4aa04 | 1112:1993e5ae60aa |
---|---|
257 // Send the pending key in the animation progm complete callback | 257 // Send the pending key in the animation progm complete callback |
258 static void mb_animated_menu_keyHandler(event_t *ev, void *arg); | 258 static void mb_animated_menu_keyHandler(event_t *ev, void *arg); |
259 static void mb_animated_menu_send_pending_key(event_t *ev,void *arg) | 259 static void mb_animated_menu_send_pending_key(event_t *ev,void *arg) |
260 { | 260 { |
261 mb_animated_menu_t *m = (mb_animated_menu_t *) arg; | 261 mb_animated_menu_t *m = (mb_animated_menu_t *) arg; |
262 X_kb_event_t *xkey; | 262 mb_kb_event_t *xkey; |
263 | 263 |
264 xkey = &m->pending_keys[m->pending_pos]; | 264 xkey = &m->pending_keys[m->pending_pos]; |
265 m->pending_pos = (m->pending_pos + 1) & 0xf; | 265 m->pending_pos = (m->pending_pos + 1) & 0xf; |
266 mb_animated_menu_keyHandler((event_t *) xkey, m); | 266 mb_animated_menu_keyHandler((event_t *) xkey, m); |
267 } | 267 } |
268 static void mb_animated_menu_keyHandler(event_t *ev, void *arg) | 268 static void mb_animated_menu_keyHandler(event_t *ev, void *arg) |
269 { | 269 { |
270 mb_animated_menu_t *m = (mb_animated_menu_t *) arg; | 270 mb_animated_menu_t *m = (mb_animated_menu_t *) arg; |
271 X_kb_event_t *xkey = (X_kb_event_t *)ev; | 271 mb_kb_event_t *xkey = (mb_kb_event_t *)ev; |
272 if(xkey->event.type != EVT_KB_PRESS) { | 272 if(xkey->event.type != EVT_KB_PRESS) { |
273 return; | 273 return; |
274 } | 274 } |
275 if (m->ready<=0) { | 275 if (m->ready<=0) { |
276 m->pending_keys[m->pending_last++] = *xkey; | 276 m->pending_keys[m->pending_last++] = *xkey; |