From a07faf8907c44458e9f8b013fd107353fb163f28 Mon Sep 17 00:00:00 2001 From: Gabriel Wang Date: Fri, 6 Sep 2024 01:30:15 +0100 Subject: [PATCH] update user control template and add on frame complete event handler --- ARM.Arm-2D.pdsc | 4 ++-- examples/common/controls/template/user_control_template.c | 7 +++++++ examples/common/controls/template/user_control_template.h | 4 ++++ 3 files changed, 13 insertions(+), 2 deletions(-) diff --git a/ARM.Arm-2D.pdsc b/ARM.Arm-2D.pdsc index 1b02a2250..b083576d6 100644 --- a/ARM.Arm-2D.pdsc +++ b/ARM.Arm-2D.pdsc @@ -256,8 +256,8 @@ - - + + diff --git a/examples/common/controls/template/user_control_template.c b/examples/common/controls/template/user_control_template.c index 41d9cd5a7..7e595fc55 100644 --- a/examples/common/controls/template/user_control_template.c +++ b/examples/common/controls/template/user_control_template.c @@ -100,6 +100,13 @@ void _on_frame_start( user__t *ptThis) } +ARM_NONNULL(1) +void _on_frame_complete( user__t *ptThis) +{ + assert(NULL != ptThis); + +} + ARM_NONNULL(1) void _show( user__t *ptThis, const arm_2d_tile_t *ptTile, diff --git a/examples/common/controls/template/user_control_template.h b/examples/common/controls/template/user_control_template.h index fcd30900f..d64b3f66e 100644 --- a/examples/common/controls/template/user_control_template.h +++ b/examples/common/controls/template/user_control_template.h @@ -92,6 +92,10 @@ extern ARM_NONNULL(1) void _on_frame_start( user__t *ptThis); +extern +ARM_NONNULL(1) +void _on_frame_complete( user__t *ptThis); + extern ARM_NONNULL(1) void _show( user__t *ptThis,