mirror of
https://github.com/zeldaret/tww.git
synced 2026-09-07 19:10:43 -04:00
work on m_Do_controller_pad / m_Do_gba_com (#36)
This commit is contained in:
@@ -242,10 +242,9 @@ public:
|
||||
/* 0x7C */ JSULink<JUTGamePad> mLink;
|
||||
/* 0x8C */ JUTGamePadRecordBase* mPadRecord;
|
||||
/* 0x90 */ JUTGamePadRecordBase* mPadReplay;
|
||||
/* 0x94 */ C3ButtonReset mButtonReset;
|
||||
/* 0x98 */ u8 field_0x98[4];
|
||||
/* 0x94 */ u8 field_0x94[4];
|
||||
/* 0x98 */ C3ButtonReset mButtonReset;
|
||||
/* 0x9C */ OSTime mResetTime;
|
||||
/* 0xA4 */ u8 field_0xa4;
|
||||
|
||||
static JSUList<JUTGamePad> mPadList;
|
||||
static bool mListInitialized;
|
||||
|
||||
@@ -0,0 +1,48 @@
|
||||
#ifndef JUTGBA_H
|
||||
#define JUTGBA_H
|
||||
|
||||
#include "dolphin/types.h"
|
||||
|
||||
struct JUTGbaParam;
|
||||
struct JUTGbaThreadVar;
|
||||
|
||||
typedef void (*JUTGba_Func)(JUTGbaParam*, void*);
|
||||
|
||||
class JUTGba {
|
||||
public:
|
||||
JUTGba();
|
||||
|
||||
static void create();
|
||||
void result_common(int, u32, u32*);
|
||||
void resultStatus_common(int, u32, u8*);
|
||||
void doJoyBoot(int, s32, s32, u8*, u32, JUTGba_Func, void*);
|
||||
void resultJoyBoot(int, u8*);
|
||||
void doInitProbe(int, JUTGba_Func, void*);
|
||||
void resultInitProbe(int, u32*);
|
||||
void doProbe(int, JUTGba_Func, void*);
|
||||
BOOL resultProbe(int, u32*);
|
||||
void doReset(int, JUTGba_Func, void*);
|
||||
BOOL resultReset(int, u8*);
|
||||
void doRead(int, u8*, JUTGba_Func, void*);
|
||||
BOOL resultRead(int, u8*);
|
||||
void doWrite(int, u8*, JUTGba_Func, void*);
|
||||
BOOL resultWrite(int, u8*);
|
||||
void doGetStatus(int, JUTGba_Func, void*);
|
||||
BOOL resultGetStatus(int, u8*);
|
||||
void gbaThreadMain(void*);
|
||||
void gbaThread_sleep(s64);
|
||||
void gbaThread_Destroy(JUTGbaThreadVar*);
|
||||
void gbaThread_JoyBoot(JUTGbaThreadVar*);
|
||||
void gbaThread_InitProbe(JUTGbaThreadVar*);
|
||||
void gbaThread_Probe(JUTGbaThreadVar*);
|
||||
void gbaThread_Reset(JUTGbaThreadVar*);
|
||||
void gbaThread_Read(JUTGbaThreadVar*);
|
||||
void gbaThread_Write(JUTGbaThreadVar*);
|
||||
void gbaThread_GetStatus(JUTGbaThreadVar*);
|
||||
|
||||
static JUTGba* getManager() { return sManager; }
|
||||
|
||||
static JUTGba* sManager;
|
||||
};
|
||||
|
||||
#endif /* JUTGBA_H */
|
||||
Reference in New Issue
Block a user