218 static void stopMotor(
int channel,
bool stop);
void(* callbackFn)(int, void *)
Definition JUTGamePad.h:8
bool sResetSwitchPushing__Q210JUTGamePad13C3ButtonReset
s64 OSTime
Definition OSTime.h:10
void PADSetAnalogMode(u32 mode)
Definition Pad.c:736
T cLib_calcTimer(T *value)
Definition c_lib.h:74
Definition JKRDisposer.h:12
static void stick(b_gos_class *i_this)
Definition d_a_b_gos.cpp:136
Definition JUTGamePad.h:274
u32 getPattern() const
Definition JUTGamePad.h:279
static JSUList< JUTGamePadLongPress > sPatternList
Definition JUTGamePad.h:275
bool field_0x48[4]
Definition JUTGamePad.h:289
bool field_0x11
Definition JUTGamePad.h:283
bool field_0x20[4]
Definition JUTGamePad.h:287
void checkCallback(int port, u32 timer)
Definition JUTGamePad.cpp:775
OSTime mTimer[4]
Definition JUTGamePad.h:288
u8 field_0x0[0x10]
Definition JUTGamePad.h:281
u32 field_0x1c
Definition JUTGamePad.h:286
bool mValid
Definition JUTGamePad.h:282
u32 mPattern
Definition JUTGamePad.h:284
u32 mMaskPattern
Definition JUTGamePad.h:285
void(* mCallback)(s32, JUTGamePadLongPress *, s32)
Definition JUTGamePad.h:290
u32 getMaskPattern() const
Definition JUTGamePad.h:278
s32 field_0x50
Definition JUTGamePad.h:291
Definition JUTGamePad.h:33
virtual void unk1(PADStatus *pad)
Definition JUTGamePad.h:35
virtual void unk0()
Definition JUTGamePad.h:34
bool mActive
Definition JUTGamePad.h:38
virtual void unk2()
Definition JUTGamePad.h:36
Definition JUTGamePad.h:202
u8 * field_0x8
Definition JUTGamePad.h:233
CRumble(JUTGamePad *pad)
Definition JUTGamePad.h:203
static bool isEnabled(u32 mask)
Definition JUTGamePad.h:228
static u32 mEnabled
Definition JUTGamePad.h:207
u32 field_0x4
Definition JUTGamePad.h:232
static void stopMotor(int channel, bool stop)
Definition JUTGamePad.cpp:623
static bool isEnabledPort(int port)
Definition JUTGamePad.h:229
static void setEnabled(u32 pad_mask)
Definition JUTGamePad.cpp:738
u32 field_0xc
Definition JUTGamePad.h:234
static void startMotor(int channel)
Definition JUTGamePad.cpp:615
u8 * field_0x10
Definition JUTGamePad.h:235
void stopPatternedRumble(s16 pad_port)
Definition JUTGamePad.cpp:713
void startPatternedRumble(void *unk0, ERumble rumble, u32 unk1)
Definition JUTGamePad.cpp:694
u32 field_0x0
Definition JUTGamePad.h:231
void stopMotorHard(int portNo)
Definition JUTGamePad.h:226
ERumble
Definition JUTGamePad.h:209
@ VAL_1
Definition JUTGamePad.h:211
@ VAL_2
Definition JUTGamePad.h:212
@ VAL_0
Definition JUTGamePad.h:210
static u32 sChannelMask[4]
Definition JUTGamePad.h:107
void stopPatternedRumbleAtThePeriod()
Definition JUTGamePad.cpp:720
static bool mStatus[4]
Definition JUTGamePad.h:206
void triggerPatternedRumble(u32 unk0)
Definition JUTGamePad.cpp:685
void clear()
Definition JUTGamePad.cpp:595
Definition JUTGamePad.h:181
f32 mValue
Definition JUTGamePad.h:194
void clear()
Definition JUTGamePad.cpp:516
void clear(JUTGamePad *pad)
static f32 sPressPoint
Definition JUTGamePad.h:182
f32 mPosY
Definition JUTGamePad.h:193
s8 field_0xe
Definition JUTGamePad.h:196
s8 field_0xf
Definition JUTGamePad.h:197
static f32 sReleasePoint
Definition JUTGamePad.h:183
f32 mPosX
Definition JUTGamePad.h:192
CStick()
Definition JUTGamePad.h:185
s16 mAngle
Definition JUTGamePad.h:195
Definition JUTGamePad.h:45
void stopMotor()
Definition JUTGamePad.h:138
static bool recalibrate(u32 pad_mask)
Definition JUTGamePad.cpp:764
void stopPatternedRumble()
Definition JUTGamePad.h:72
static bool mListInitialized
Definition JUTGamePad.h:257
static u32 sRumbleSupported
Definition JUTGamePad.h:267
static u8 mPadAssign[4]
Definition JUTGamePad.h:264
f32 getMainStickX() const
Definition JUTGamePad.h:94
static EStickMode sStickMode
Definition JUTGamePad.h:262
f32 getMainStickValue() const
Definition JUTGamePad.h:98
u8 field_0xa8
Definition JUTGamePad.h:254
u8 getAnalogR() const
Definition JUTGamePad.h:116
s16 getMainStickAngle() const
Definition JUTGamePad.h:100
EPadPort
Definition JUTGamePad.h:54
@ Port_2
Definition JUTGamePad.h:57
@ Port_4
Definition JUTGamePad.h:59
@ Port_1
Definition JUTGamePad.h:56
@ Port_3
Definition JUTGamePad.h:58
@ Port_Unknown
Definition JUTGamePad.h:55
JSULink< JUTGamePad > mLink
Definition JUTGamePad.h:248
static CButton mPadButton[4]
Definition JUTGamePad.h:259
void assign()
Definition JUTGamePad.cpp:291
JUTGamePadRecordBase * getPadReplay() const
Definition JUTGamePad.h:122
EWhichStick
Definition JUTGamePad.h:50
@ WS_MAIN_STICK
Definition JUTGamePad.h:51
@ WS_SUB_STICK
Definition JUTGamePad.h:52
u8 getAnalogB() const
Definition JUTGamePad.h:112
virtual ~JUTGamePad()
Definition JUTGamePad.cpp:143
static void setResetCallback(callbackFn callback, void *param_0)
Definition JUTGamePad.h:85
static u32 read()
Definition JUTGamePad.cpp:210
CStick mSubStick
Definition JUTGamePad.h:244
static void setAnalogMode(u32 mode)
Definition JUTGamePad.h:78
void checkResetCallback(OSTime unk)
Definition JUTGamePad.cpp:332
f32 getSubStickValue() const
Definition JUTGamePad.h:106
s16 mPortNum
Definition JUTGamePad.h:246
static u32 sSuppressPadReset
Definition JUTGamePad.h:265
CRumble mRumble
Definition JUTGamePad.h:245
JUTGamePadRecordBase * mPadRecord
Definition JUTGamePad.h:249
void stopMotorWaveHard()
Definition JUTGamePad.h:200
void clear()
Definition JUTGamePad.cpp:175
void startMotorWave(void *param_2, CRumble::ERumble rumble, u32 param_4)
Definition JUTGamePad.h:238
s16 getPortNum() const
Definition JUTGamePad.h:120
static void checkResetSwitch()
Definition JUTGamePad.cpp:418
static PADStatus mPadStatus[4]
Definition JUTGamePad.h:258
static u32 sClampMode
Definition JUTGamePad.h:263
f32 getMainStickY() const
Definition JUTGamePad.h:96
JUTGamePadRecordBase * getPadRecord() const
Definition JUTGamePad.h:124
u8 field_0x9c[4]
Definition JUTGamePad.h:252
static s8 getPortStatus(u32 port)
Definition JUTGamePad.h:141
C3ButtonReset mButtonReset
Definition JUTGamePad.h:251
CButton mButton
Definition JUTGamePad.h:242
u32 testTrigger(u32 button) const
Definition JUTGamePad.h:126
void stopMotorHard()
Definition JUTGamePad.h:139
static JSUList< JUTGamePad > mPadList
Definition JUTGamePad.h:256
void update()
Definition JUTGamePad.cpp:366
static JUTGamePad * getGamePad(int pad_index)
Definition JUTGamePad.cpp:725
EStickMode
Definition JUTGamePad.h:47
@ STICK_MODE_1
Definition JUTGamePad.h:48
f32 getSubStickX() const
Definition JUTGamePad.h:102
static s32 init()
Definition JUTGamePad.cpp:168
s8 getErrorStatus() const
Definition JUTGamePad.h:118
bool isPushing3ButtonReset() const
Definition JUTGamePad.h:128
CStick mMainStick
Definition JUTGamePad.h:243
static void clearResetOccurred()
Definition JUTGamePad.h:83
u32 getButton() const
Definition JUTGamePad.h:90
static CStick mPadMStick[4]
Definition JUTGamePad.h:260
static CStick mPadSStick[4]
Definition JUTGamePad.h:261
s16 getSubStickAngle() const
Definition JUTGamePad.h:108
void stopMotorWave()
Definition JUTGamePad.h:137
f32 getSubStickY() const
Definition JUTGamePad.h:104
u32 getTrigger() const
Definition JUTGamePad.h:92
s8 mErrorStatus
Definition JUTGamePad.h:247
JUTGamePadRecordBase * mPadReplay
Definition JUTGamePad.h:250
static void clearForReset()
Definition JUTGamePad.cpp:437
static s32 sAnalogMode
Definition JUTGamePad.h:266
u8 getAnalogL() const
Definition JUTGamePad.h:114
u8 getAnalogA() const
Definition JUTGamePad.h:110
OSTime mResetTime
Definition JUTGamePad.h:253
void initList()
Definition JUTGamePad.cpp:153
s8 error
Definition pad.h:57
signed char s8
Definition types.h:4
unsigned long u32
Definition types.h:10
float f32
Definition types.h:22
signed short s16
Definition types.h:5
signed long s32
Definition types.h:6
unsigned char u8
Definition types.h:8