Finish ppu, and mbc1 mapping

This commit is contained in:
2025-02-01 19:05:25 -07:00
parent 2603916972
commit 89a99b160d
17 changed files with 779 additions and 18 deletions

22
include/gamepad.h Normal file
View File

@ -0,0 +1,22 @@
#pragma once
#include <common.h>
typedef struct {
bool start;
bool select;
bool a;
bool b;
bool up;
bool down;
bool left;
bool right;
} gamepad_state;
void gamepad_init();
bool gamepad_button_sel();
bool gamepad_dir_sel();
void gamepad_set_sel(u8 value);
gamepad_state *gamepad_get_state();
u8 gamepad_get_output();