Full savestating to memory

This commit is contained in:
2025-05-23 15:49:26 -06:00
parent e9d5b359d0
commit b86d550812
23 changed files with 378 additions and 56 deletions

View File

@ -13,6 +13,20 @@ typedef struct {
bool right;
} gamepad_state;
typedef struct {
bool button_sel;
bool dir_sel;
gamepad_state controller;
gamepad_state prev;
} gamepad_context;
typedef struct {
gamepad_context ctx;
} ctlr_state;
void gamepad_save_state(ctlr_state*);
void gamepad_load_state(const ctlr_state*);
void gamepad_init();
bool gamepad_button_sel();
bool gamepad_dir_sel();