achimdoebler / UGUI

µGUI - Open Source GUI module for embedded systems
Other
1.22k stars 420 forks source link

a little suggesttion for us newbie. #32

Open zykNet opened 6 years ago

zykNet commented 6 years ago

A newbie who familer to android always think that callback function will be called when the button pressed ranthre than changed. So i suggest add a new conditional sentence in the callback function (in your demo).

ex: if ( msg->id == OBJ_TYPE_BUTTON && msg->event == OBJ_EVENT_PRESSED )

i spent whole two days to figure this future out. ~( ̄▽ ̄~)

zykNet commented 6 years ago

further more , i disable the future USE_PRERENDER_EVENT and USE_POSTRENDER_EVENT. when i enable this future, the program is loop in windows 1 and windows 2.(UG_Update always call callback function MAX_OBJECTS times). i just don,t know how to use those future, i just disable this.(>﹏<)