[Lua] Add event handles

This commit is contained in:
wheremyfoodat 2023-09-18 00:35:29 +03:00
parent baa9cab051
commit 7936a87fb0
3 changed files with 73 additions and 9 deletions

View file

@ -414,6 +414,7 @@ void Emulator::runFrame() {
if (running) {
cpu.runFrame(); // Run 1 frame of instructions
gpu.display(); // Display graphics
lua.signalEvent(LuaEvent::Frame);
// Send VBlank interrupts
ServiceManager& srv = kernel.getServiceManager();