Add touch input support, add fast scrolling support for coverflow display mode, fix use after free bug in banner list mode

This commit is contained in:
Gericom
2026-04-04 19:24:39 +02:00
parent 21a8790ebc
commit 97762b14d3
119 changed files with 2251 additions and 762 deletions

View File

@@ -1,9 +1,20 @@
#include "common.h"
#include "Task.h"
void TaskBase::Execute()
void TaskBase::RequestCancel()
{
u32 irqs = rtos_disableIrqs();
_cancelRequested = true;
if (_state == TaskState::NotStarted)
{
_state = TaskState::Canceled;
rtos_wakeupQueue(&_threadQueue);
}
rtos_restoreIrqs(irqs);
}
void TaskBase::Execute(u32 irqs)
{
if (_state == TaskState::NotStarted)
{
_state = TaskState::Running;
@@ -12,7 +23,9 @@ void TaskBase::Execute()
SetFinalState(finalState);
}
else
{
rtos_restoreIrqs(irqs);
}
}
void TaskBase::SetFinalState(TaskState finalState)