Mercurial > MadButterfly
diff include/mbapp.h @ 296:2e97e8082d83
* Fix the symbol definition code which does not assume the id is the same as the mbname.
* Add appleTV style list demo. We need to add animation latter. It is staic for now.
author | wycc |
---|---|
date | Sun, 01 Feb 2009 16:28:28 +0800 |
parents | 2ca0773cd48d |
children | 84ce2d4a8c3f |
line wrap: on
line diff
--- a/include/mbapp.h Sun Feb 01 15:10:18 2009 +0800 +++ b/include/mbapp.h Sun Feb 01 16:28:28 2009 +0800 @@ -6,6 +6,7 @@ redraw_man_t *rdman; mb_sprite_t *rootsprite; mb_obj_t *root; + subject_t *kbevents; void *private; }; MBApp *MBApp_Init(char *module); @@ -14,6 +15,7 @@ void MBApp_loop(MBApp *en); #define MBAPP_DATA(app,type) ((type *) ((app)->private)) #define MBAPP_RDMAN(app) (((MBApp *) app)->rdman) +#define MBAPP_keySubject(app) ((app)->kbevents) #include "mbbutton.h" #endif