mirror of
https://github.com/pret/pokeplatinum.git
synced 2026-03-30 06:05:53 -05:00
* main callback, hblank * HandleConsoleFold * WaitFrame, SoftReset, UpdateSound * HeapCanary * Label the RTC code * Address review comments
57 lines
1.3 KiB
C
57 lines
1.3 KiB
C
#ifndef POKEPLATINUM_CORE_SYS_H
|
|
#define POKEPLATINUM_CORE_SYS_H
|
|
|
|
#include "struct_decls/struct_0201CD88_decl.h"
|
|
#include "overlay023/funcptr_ov23_022537D4.h"
|
|
|
|
typedef void (* Callback)(void *);
|
|
|
|
enum ButtonMode {
|
|
BUTTON_MODE_NORMAL = 0,
|
|
BUTTON_MODE_START_IS_X = 1,
|
|
BUTTON_MODE_SWAP_XY = 2,
|
|
BUTTON_MODE_L_IS_A = 3,
|
|
};
|
|
|
|
typedef struct CoreSys {
|
|
Callback mainCallback;
|
|
void *mainCallbackData;
|
|
Callback hblankCallback;
|
|
void *hblankCallbackData;
|
|
UnkFuncPtr_ov23_022537D4 unk_10;
|
|
UnkFuncPtr_ov23_022537D4 unk_14;
|
|
UnkStruct_0201CD88 * unk_18;
|
|
UnkStruct_0201CD88 * unk_1C;
|
|
UnkStruct_0201CD88 * unk_20;
|
|
UnkStruct_0201CD88 * unk_24;
|
|
u32 * unk_28;
|
|
u32 frameCounter;
|
|
u32 unk_30;
|
|
enum ButtonMode buttonMode;
|
|
u32 heldKeysRaw;
|
|
u32 pressedKeysRaw;
|
|
u32 pressedKeysRepeatableRaw;
|
|
u32 heldKeys;
|
|
u32 pressedKeys;
|
|
u32 pressedKeysRepeatable;
|
|
int autorepeatTimer;
|
|
int autorepeatRate;
|
|
int autorepeatDelay;
|
|
u16 touchX;
|
|
u16 touchY;
|
|
u16 touchPressed;
|
|
u16 touchHeld;
|
|
u8 unk_64;
|
|
u8 unk_65;
|
|
u8 unk_66;
|
|
u8 inhibitSleep;
|
|
u8 inhibitReset;
|
|
u8 padding_69[3];
|
|
BOOL unk_6C;
|
|
u32 *heapCanary;
|
|
} CoreSys;
|
|
|
|
extern CoreSys gCoreSys;
|
|
|
|
#endif // POKEPLATINUM_CORE_SYS_H
|