[FL-867] GUI: ViewPort arrangement API, better input and draw dispatching (#333)

* Input: refactoring, platform agnostic key configuration, update usage across project. Minor queue usage fixes and tick timings.
* Gui: lighter and more efficient input and draw call dispatching, ViewPort rearranging API. View: conditional model updates, API usage update.
* BT: smaller update delay
* GUI: ViewPort visibility check
This commit is contained in:
あく
2021-02-10 12:06:29 +03:00
committed by GitHub
parent 928bca4eaa
commit 2d09b8e318
18 changed files with 299 additions and 199 deletions

View File

@@ -102,10 +102,10 @@ void* view_get_model(View* view) {
return view->model;
}
void view_commit_model(View* view) {
void view_commit_model(View* view, bool update) {
furi_assert(view);
view_unlock_model(view);
if(view->dispatcher) {
if(update && view->dispatcher) {
view_dispatcher_update(view->dispatcher, view);
}
}