Pad stuff

This commit is contained in:
elijah-thomas774
2025-06-15 14:40:59 -04:00
parent 2707f74d70
commit e4b1c30f47
40 changed files with 2258 additions and 874 deletions
+32 -2
View File
@@ -10,10 +10,40 @@ extern int g_currentCoreId;
extern EGG::CoreController *g_currentCore;
extern EGG::CoreController *g_core[4];
enum Button {
BUTTON_LEFT = 0x1,
BUTTON_RIGHT = 0x2,
BUTTON_DOWN = 0x4,
BUTTON_UP = 0x8,
BUTTON_PLUS = 0x10,
BUTTON_2 = 0x100,
BUTTON_1 = 0x200,
BUTTON_B = 0x400,
BUTTON_A = 0x800,
BUTTON_MINUS = 0x1000,
BUTTON_Z = 0x2000,
BUTTON_C = 0x4000,
};
inline EGG::CoreController *getCore(int i) {
return g_core[i];
}
inline EGG::CoreController *getCore() {
return g_currentCore;
}
inline EGG::CoreControllerMgr *getMgr() {
return g_padMg;
}
inline int getCurrentCoreID() {
return g_currentCoreId;
}
// Defined in dPad, referenced in both mPad and dPad
extern "C" void async_info_callback(s32 chan, s32 result);
void create();
void beginPad();
void endPad();
} // namespace mPad
}; // namespace mPad
#endif