Functions
Sequence_Initialize
inline void Sequence_Initialize(
u8 wait,
SeqEventCB event,
SeqDrawCB draw,
SeqInputCB input
)

Initialize the sequencer

Parameters
wait
u8

Frame wait time

event
SeqEventCB

Event callback function

draw
SeqDrawCB

Draw callback function

input
SeqInputCB

Input check callback function

Sequence_SetActions
inline void Sequence_SetActions(
const SeqAction* left,
const SeqAction* right
)

Initialize the left and right move actions

Parameters
left
const SeqAction*

Action to move left

right
const SeqAction*

Action to move right

Sequence_InitializeTimeline
inline void Sequence_InitializeTimeline(
const SeqKey** timelines
)

Initialize the timeline table

Parameters
timelines
const SeqKey**

Pointer to the timeline table

Sequence_SetSynchFrames
inline void Sequence_SetSynchFrames(
u8 frames
)

Set the synchronization display frame count

Parameters
frames
u8

Number of display frames to wait before updating

Sequence_SetEventCallback
inline void Sequence_SetEventCallback(
SeqEventCB event
)

Set the event callback function

Parameters
event
SeqEventCB

Event callback function

Sequence_SetDrawCallback
inline void Sequence_SetDrawCallback(
SeqDrawCB draw
)

Set the draw callback function

Parameters
draw
SeqDrawCB

Draw callback function

Sequence_SetDirty
inline void Sequence_SetDirty()

Set dirty flag to force redraw

Sequence_SetFinished
inline void Sequence_SetFinished()

Set finish flag to force redraw

Sequence_HideCursor
inline void Sequence_HideCursor()

Set hide cursor flag

Sequence_ShowCursor
inline void Sequence_ShowCursor()

Reset hide cursor flag

Sequence_SetNextFrame
inline void Sequence_SetNextFrame(
u8 frame
)

Set next frame to be rendered

Sequence_SetCursor
inline void Sequence_SetCursor(
u8 x,
u8 y
)

Set the cursor position

Parameters
x
u8

X coordinate of the cursor

y
u8

Y coordinate of the cursor

Sequence_GetCursorX
inline u8 Sequence_GetCursorX()

Get the cursor X coordinate

Return

Cursor X coordinate

Sequence_GetCursorY
inline u8 Sequence_GetCursorY()

Get the cursor Y coordinate

Return

Cursor Y coordinate

Sequence_MoveCursor
inline void Sequence_MoveCursor(
i8 x,
i8 y
)

Move the cursor position

Parameters
x
i8

X coordinate move offset

y
i8

Y coordinate move offset

Sequence_SetCustomCursor
inline void Sequence_SetCustomCursor(
u8 cursor
)

Set a custom cursor pattern Parameters: cursor - Custum cursor pattern index (can't be 0)

Sequence_GetCustomCursor
inline u8 Sequence_GetCustomCursor()

Get the current custom cursor pattern

Return

Current custom cursor pattern index

Sequence_HasCustomCursor
inline bool Sequence_HasCustomCursor()

Check if a custom cursor pattern is set

Return

FALSE if no custom cursor pattern is set

Sequence_ClearCustomCursor
inline void Sequence_ClearCustomCursor()

Clear custom cursor pattern

Sequence_Play
void Sequence_Play(
const Sequence* seq,
u8 frame
)

Play a sequence

Parameters
seq
const Sequence*

Pointer to the sequence structure

frame
u8

Frame number to start playing

SeqStartTransition

Start a pan sequence transition

Parameters
frame

Pan's frame number to start the transition

nextSeq

Pointer to the next sequence structure

nextFrame

Frame number to start the next sequence

Sequence_GetCurrent
inline const Sequence* Sequence_GetCurrent()

Get the current sequence

Return

Pointer to the current sequence structure

Sequence_GetFrame
inline u8 Sequence_GetFrame()

Get the current frame number

Return

Current frame number

Sequence_GetInput
inline u8 Sequence_GetInput()

Get the current input flags Return: Current input flags

Sequence_CheckInput
inline bool Sequence_CheckInput(
u8 in
)

Check if specific input flag is set

Parameters
in
u8

Input flag to check

Return

FALSE if input flag is not set

Sequence_CheckArea
bool Sequence_CheckArea(
const SeqActionArea* area
)

Check if cursor is in area

Parameters
area
const SeqActionArea*

Pointer to the action area to check

Return

FALSE if cursor is not in area

Sequence_SetActionCallback
inline void Sequence_SetActionCallback(
callback cb
)

Set action callback

Parameters
cb
callback

Function to be called during action check

Sequence_SetHoverAction
inline void Sequence_SetHoverAction(
const SeqAction* act
)

Set the action hovered by the cursor

Parameters
act
const SeqAction*

Pointer to hover action (can be NULL)

Sequence_GetHoverAction
inline const SeqAction* Sequence_GetHoverAction()

Get the action hovered by the cursor

Return

Pointer to hover action (can be NULL)

Sequence_Update
void Sequence_Update()

Update current sequence and check for interactions

Sequence_Interrupt
void Sequence_Interrupt()

Interruption handler

Sequence_Wait
void Sequence_Wait()

Wait for sequence synchronization