diff options
| author | elijah-thomas774 <elijahthomas774@gmail.com> | 2025-06-15 14:40:59 -0400 |
|---|---|---|
| committer | elijah-thomas774 <elijahthomas774@gmail.com> | 2025-06-15 14:40:59 -0400 |
| commit | e4b1c30f472e7a4fdbce657aba7b9b5fb0dd2d59 (patch) | |
| tree | cd267c29d69e4996ff1d120ebb3613744ca69f1b /include/m | |
| parent | 2707f74d70f2783f8e70889f48e95b3ec8c00635 (diff) | |
Pad stuff
Diffstat (limited to 'include/m')
| -rw-r--r-- | include/m/m_pad.h | 34 |
1 files changed, 32 insertions, 2 deletions
diff --git a/include/m/m_pad.h b/include/m/m_pad.h index a6dae38e..47fd5d1c 100644 --- a/include/m/m_pad.h +++ b/include/m/m_pad.h @@ -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 |
