link m_pause.c

This commit is contained in:
Prakxo
2023-06-16 15:16:31 +02:00
parent 5e5c7ebfe1
commit f650ba65c0
4 changed files with 49 additions and 0 deletions
+2
View File
@@ -26,6 +26,8 @@ extern "C" {
#define BUTTON_B 0x4000
#define BUTTON_A 0x8000
#define CHECK_BTN_ALL(state, combo) (~((state) | ~(combo)) == 0)
/* sizeof(struct controller_s) == 0x38 */
typedef struct controller_s {
/* 0x00 */ f32 move_pX;
+24
View File
@@ -0,0 +1,24 @@
#ifndef M_PAUSE_H
#define M_PAUSE_H
#include "types.h"
#include "libu64/pad.h"
#ifdef __cplusplus
extern "C" {
#endif
typedef struct pause_t{
int enabled;
int timer;
}pause_t; // size = 0x8
void Pause_ct(pause_t* pause);
int Pause_proc(pause_t* pause, pad_t* pad);
#ifdef __cplusplus
}
#endif
#endif