Twilight Princess
Decompilation of The Legend of Zelda: Twilight Princess
Loading...
Searching...
No Matches
JUTGamePad Struct Reference

#include <JUTGamePad.h>

+ Inheritance diagram for JUTGamePad:
+ Collaboration diagram for JUTGamePad:

Classes

struct  C3ButtonReset
 
struct  CButton
 
struct  CRumble
 
struct  CStick
 

Public Types

enum  EStickMode { STICK_MODE_1 = 1 }
 
enum  EWhichStick { WS_MAIN_STICK , WS_SUB_STICK }
 
enum  EPadPort {
  Port_Unknown = -1 , Port_1 , Port_2 , Port_3 ,
  Port_4
}
 

Public Member Functions

 JUTGamePad (JUTGamePad::EPadPort port)
 
virtual ~JUTGamePad ()
 
void initList ()
 
void clear ()
 
void assign ()
 
void checkResetCallback (OSTime unk)
 
void update ()
 
void stopPatternedRumble ()
 
u32 getButton () const
 
u32 getTrigger () const
 
f32 getMainStickX () const
 
f32 getMainStickY () const
 
f32 getMainStickValue () const
 
s16 getMainStickAngle () const
 
f32 getSubStickX () const
 
f32 getSubStickY () const
 
f32 getSubStickValue () const
 
s16 getSubStickAngle () const
 
u8 getAnalogA () const
 
u8 getAnalogB () const
 
u8 getAnalogL () const
 
u8 getAnalogR () const
 
s8 getErrorStatus () const
 
s16 getPortNum () const
 
JUTGamePadRecordBasegetPadReplay () const
 
JUTGamePadRecordBasegetPadRecord () const
 
u32 testTrigger (u32 button) const
 
bool isPushing3ButtonReset () const
 
void stopMotorWave ()
 
void stopMotor ()
 
void stopMotorHard ()
 
void stopMotorWaveHard ()
 
void startMotorWave (void *param_2, CRumble::ERumble rumble, u32 param_4)
 
- Public Member Functions inherited from JKRDisposer
 JKRDisposer ()
 
virtual ~JKRDisposer ()
 

Static Public Member Functions

static s32 init ()
 
static u32 read ()
 
static void checkResetSwitch ()
 
static void clearForReset ()
 
static JUTGamePadgetGamePad (int pad_index)
 
static bool recalibrate (u32 pad_mask)
 
static void setAnalogMode (u32 mode)
 
static void clearResetOccurred ()
 
static void setResetCallback (callbackFn callback, void *param_0)
 
static s8 getPortStatus (u32 port)
 

Public Attributes

CButton mButton
 
CStick mMainStick
 
CStick mSubStick
 
CRumble mRumble
 
s16 mPortNum
 
s8 mErrorStatus
 
JSULink< JUTGamePadmLink
 
JUTGamePadRecordBasemPadRecord
 
JUTGamePadRecordBasemPadReplay
 
C3ButtonReset mButtonReset
 
u8 field_0x9c [4]
 
OSTime mResetTime
 
u8 field_0xa8
 
- Public Attributes inherited from JKRDisposer
JKRHeapmHeap
 
JSULink< JKRDisposermLink
 

Static Public Attributes

static JSUList< JUTGamePadmPadList
 
static bool mListInitialized
 
static PADStatus mPadStatus [4]
 
static CButton mPadButton [4]
 
static CStick mPadMStick [4]
 
static CStick mPadSStick [4]
 
static EStickMode sStickMode = STICK_MODE_1
 
static u32 sClampMode = 0x00000001
 
static u8 mPadAssign [4]
 
static u32 sSuppressPadReset
 
static s32 sAnalogMode
 
static u32 sRumbleSupported
 

Member Enumeration Documentation

◆ EPadPort

Enumerator
Port_Unknown 
Port_1 
Port_2 
Port_3 
Port_4 

◆ EStickMode

Enumerator
STICK_MODE_1 

◆ EWhichStick

Enumerator
WS_MAIN_STICK 
WS_SUB_STICK 

Constructor & Destructor Documentation

◆ JUTGamePad()

JUTGamePad::JUTGamePad ( JUTGamePad::EPadPort  port)

◆ ~JUTGamePad()

JUTGamePad::~JUTGamePad ( )
virtual

Member Function Documentation

◆ assign()

void JUTGamePad::assign ( )

◆ checkResetCallback()

void JUTGamePad::checkResetCallback ( OSTime  unk)

◆ checkResetSwitch()

void JUTGamePad::checkResetSwitch ( )
static

◆ clear()

void JUTGamePad::clear ( )

◆ clearForReset()

void JUTGamePad::clearForReset ( )
static

◆ clearResetOccurred()

static void JUTGamePad::clearResetOccurred ( )
inlinestatic

◆ getAnalogA()

u8 JUTGamePad::getAnalogA ( ) const
inline

◆ getAnalogB()

u8 JUTGamePad::getAnalogB ( ) const
inline

◆ getAnalogL()

u8 JUTGamePad::getAnalogL ( ) const
inline

◆ getAnalogR()

u8 JUTGamePad::getAnalogR ( ) const
inline

◆ getButton()

u32 JUTGamePad::getButton ( ) const
inline

◆ getErrorStatus()

s8 JUTGamePad::getErrorStatus ( ) const
inline

◆ getGamePad()

JUTGamePad * JUTGamePad::getGamePad ( int  pad_index)
static

◆ getMainStickAngle()

s16 JUTGamePad::getMainStickAngle ( ) const
inline

◆ getMainStickValue()

f32 JUTGamePad::getMainStickValue ( ) const
inline

◆ getMainStickX()

f32 JUTGamePad::getMainStickX ( ) const
inline

◆ getMainStickY()

f32 JUTGamePad::getMainStickY ( ) const
inline

◆ getPadRecord()

JUTGamePadRecordBase * JUTGamePad::getPadRecord ( ) const
inline

◆ getPadReplay()

JUTGamePadRecordBase * JUTGamePad::getPadReplay ( ) const
inline

◆ getPortNum()

s16 JUTGamePad::getPortNum ( ) const
inline

◆ getPortStatus()

static s8 JUTGamePad::getPortStatus ( u32  port)
inlinestatic

◆ getSubStickAngle()

s16 JUTGamePad::getSubStickAngle ( ) const
inline

◆ getSubStickValue()

f32 JUTGamePad::getSubStickValue ( ) const
inline

◆ getSubStickX()

f32 JUTGamePad::getSubStickX ( ) const
inline

◆ getSubStickY()

f32 JUTGamePad::getSubStickY ( ) const
inline

◆ getTrigger()

u32 JUTGamePad::getTrigger ( ) const
inline

◆ init()

s32 JUTGamePad::init ( )
static

◆ initList()

void JUTGamePad::initList ( )

◆ isPushing3ButtonReset()

bool JUTGamePad::isPushing3ButtonReset ( ) const
inline

◆ read()

u32 JUTGamePad::read ( )
static

◆ recalibrate()

bool JUTGamePad::recalibrate ( u32  pad_mask)
static

◆ setAnalogMode()

static void JUTGamePad::setAnalogMode ( u32  mode)
inlinestatic

◆ setResetCallback()

static void JUTGamePad::setResetCallback ( callbackFn  callback,
void param_0 
)
inlinestatic

◆ startMotorWave()

void JUTGamePad::startMotorWave ( void param_2,
CRumble::ERumble  rumble,
u32  param_4 
)
inline

◆ stopMotor()

void JUTGamePad::stopMotor ( )
inline

◆ stopMotorHard()

void JUTGamePad::stopMotorHard ( )
inline

◆ stopMotorWave()

void JUTGamePad::stopMotorWave ( )
inline

◆ stopMotorWaveHard()

void JUTGamePad::stopMotorWaveHard ( )
inline

◆ stopPatternedRumble()

void JUTGamePad::stopPatternedRumble ( )
inline

◆ testTrigger()

u32 JUTGamePad::testTrigger ( u32  button) const
inline

◆ update()

void JUTGamePad::update ( )

Member Data Documentation

◆ field_0x9c

u8 JUTGamePad::field_0x9c[4]

◆ field_0xa8

u8 JUTGamePad::field_0xa8

◆ mButton

CButton JUTGamePad::mButton

◆ mButtonReset

C3ButtonReset JUTGamePad::mButtonReset

◆ mErrorStatus

s8 JUTGamePad::mErrorStatus

◆ mLink

JSULink<JUTGamePad> JUTGamePad::mLink

◆ mListInitialized

bool JUTGamePad::mListInitialized
static

◆ mMainStick

CStick JUTGamePad::mMainStick

◆ mPadAssign

u8 JUTGamePad::mPadAssign
static

◆ mPadButton

JUTGamePad::CButton JUTGamePad::mPadButton
static

◆ mPadList

JSUList< JUTGamePad > JUTGamePad::mPadList
static

◆ mPadMStick

JUTGamePad::CStick JUTGamePad::mPadMStick
static

◆ mPadRecord

JUTGamePadRecordBase* JUTGamePad::mPadRecord

◆ mPadReplay

JUTGamePadRecordBase* JUTGamePad::mPadReplay

◆ mPadSStick

JUTGamePad::CStick JUTGamePad::mPadSStick
static

◆ mPadStatus

PADStatus JUTGamePad::mPadStatus
static

◆ mPortNum

s16 JUTGamePad::mPortNum

◆ mResetTime

OSTime JUTGamePad::mResetTime

◆ mRumble

CRumble JUTGamePad::mRumble

◆ mSubStick

CStick JUTGamePad::mSubStick

◆ sAnalogMode

s32 JUTGamePad::sAnalogMode
static

◆ sClampMode

SECTION_SDATA u32 JUTGamePad::sClampMode = 0x00000001
static

◆ sRumbleSupported

u32 JUTGamePad::sRumbleSupported
static

◆ sStickMode

SECTION_SDATA JUTGamePad::EStickMode JUTGamePad::sStickMode = STICK_MODE_1
static

◆ sSuppressPadReset

u32 JUTGamePad::sSuppressPadReset
static

The documentation for this struct was generated from the following files: