Initial commit

This commit is contained in:
Gericom
2025-11-22 17:21:45 +01:00
commit 5d6f67c612
517 changed files with 63025 additions and 0 deletions

25
arm9/source/VBlank.h Normal file
View File

@@ -0,0 +1,25 @@
#pragma once
#include <libtwl/rtos/rtosEvent.h>
/// @brief Helper class for waiting for vblank.
class VBlank
{
public:
static void Init()
{
rtos_createEvent(&sEvent);
}
static void Wait(bool waitNew = true, bool clearAfter = true)
{
rtos_waitEvent(&sEvent, waitNew, clearAfter);
}
static void NotifyIrq()
{
rtos_signalEvent(&sEvent);
}
private:
static rtos_event_t sEvent;
};