If no tapping in LCD, UI will go to IDLE screen.
If tapping in LCD, the IDLE timer will be reseted.
Now I create a timer in C code, and set a variable to notice UI to enter IDLE screen when timer timeout. But if user tap the LCD, timer need to be reseted. Can we add reset timer function in a few place instead of adding in every touch event of UI?
I found a place to add reset timer function once in framework_nucleus.c under "case IFXFTouchDown:". After do this, UI don't need to add reset timer function.
But we worry that we modify the Inflexion UI engine may cause other problem. So now I don't take this method, but add reset timer function in every screen. And met some things:
1. Every screen need add a touch region to catch the touch event, then call reset timer function.
2. Every tapping event in each screen, need add a link to call reset timer function.
3. Scroll menu is not a event in Inflexion UI event, we can't catch this event to call reset timer function. (scroll a touch region is not "onTap" "onPress" "onSignal")
4. We need adjust the Z order in every screen carefully, because touch region to catch the touch event should between text/icon which don't need respond tapping and text/icon need respond tapping.
Can you give some advice to us?