Full savestating to memory
This commit is contained in:
@ -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();
|
||||
|
Reference in New Issue
Block a user