doc `KaleidoScope_SetCursorPos`

This commit is contained in:
Dragorn421 2025-06-14 23:20:01 +02:00
parent 7547603989
commit b6580eff2b
No known key found for this signature in database
GPG Key ID: 381AEBAF3D429335
1 changed files with 7 additions and 0 deletions

View File

@ -110,7 +110,14 @@ void KaleidoScope_DrawAmmoCount(PauseContext* pauseCtx, GraphicsContext* gfxCtx,
CLOSE_DISPS(gfxCtx, "../z_kaleido_item.c", 116); CLOSE_DISPS(gfxCtx, "../z_kaleido_item.c", 116);
} }
/**
* Set the cursor to the position of `vtx[index]`.
* The position indicates the cursor's top-left.
*
* @see KaleidoScope_UpdateCursorVtx where this position is used to update all cursor quads.
*/
void KaleidoScope_SetCursorPos(PauseContext* pauseCtx, u16 index, Vtx* vtx) { void KaleidoScope_SetCursorPos(PauseContext* pauseCtx, u16 index, Vtx* vtx) {
// PAUSE_QUAD_CURSOR_TL
pauseCtx->cursorVtx[0].v.ob[0] = vtx[index].v.ob[0]; pauseCtx->cursorVtx[0].v.ob[0] = vtx[index].v.ob[0];
pauseCtx->cursorVtx[0].v.ob[1] = vtx[index].v.ob[1]; pauseCtx->cursorVtx[0].v.ob[1] = vtx[index].v.ob[1];
} }