Working on ppu

This commit is contained in:
2025-02-18 22:39:56 -07:00
parent 89a1b4cec6
commit c8ec44fa39
7 changed files with 38 additions and 9 deletions

View File

@ -305,6 +305,14 @@ void ui_on_key(bool down, u32 key_code) {
printf("Resumed Emulation\n");
}
}
if(key_code == SDLK_d && down == true) {
ppu_get_context()->debug = !ppu_get_context()->debug;
if(ppu_get_context()->debug) {
printf("PPU Debug Enabled\n");
} else {
printf("PPU Debug Disabled\n");
}
}
switch(key_code){
case SDLK_z: gamepad_get_state()->b = down; break;
case SDLK_x: gamepad_get_state()->a = down; break;