diff options
| author | Prakxo <87568477+Prakxo@users.noreply.github.com> | 2023-08-12 17:55:42 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-08-12 09:55:42 -0700 |
| commit | 8aa8fb893a2258a27e77b2872c189a93dc427a2e (patch) | |
| tree | f374420ecdc12ec202ef01f41404d34fb9e22459 /include | |
| parent | d9a77b4949e78c889d5cc2c7554cce4a9b12992c (diff) | |
m_pause OK (#47)
* m_pause OK
* yeah now it's OK lol
* refactor
* refactor 2
Diffstat (limited to 'include')
| -rw-r--r-- | include/m_controller.h | 3 | ||||
| -rw-r--r-- | include/m_pause.h | 10 |
2 files changed, 11 insertions, 2 deletions
diff --git a/include/m_controller.h b/include/m_controller.h index 7370fdc..fc5a6f8 100644 --- a/include/m_controller.h +++ b/include/m_controller.h @@ -3,6 +3,9 @@ #include "ultra64.h" +#define CHECK_BTN_ALL(state, combo) (~((state) | ~(combo)) == 0) +#define RESET_BUTTON 0x80 + struct GameState; void mCon_ct(struct GameState* gameState); diff --git a/include/m_pause.h b/include/m_pause.h index b841780..c44070e 100644 --- a/include/m_pause.h +++ b/include/m_pause.h @@ -2,8 +2,14 @@ #define M_PAUSE_H #include "ultra64.h" +#include "libu64/pad.h" -// void Pause_ct(); -// void Pause_proc(); +typedef struct Pause{ + /* 0x0 */ s32 enabled; + /* 0x4 */ s32 timer; +} Pause; // size = 0x8 + +void Pause_ct(Pause* pause); +s32 Pause_proc(Pause* pause, Input* input); #endif |
