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 { EStickMode1 = 1 }
 
enum  EWhichStick { EMainStick , ESubStick }
 
enum  EPadPort {
  EPortInvalid = -1 , EPort1 , EPort2 , EPort3 ,
  EPort4
}
 
enum  EClampMode { EClampNone , EClampStick , EClampCircle }
 

Public Member Functions

 JUTGamePad (JUTGamePad::EPadPort port)
 
virtual ~JUTGamePad ()
 
void initList ()
 
void clear ()
 
void assign ()
 
void checkResetCallback (OSTime holdTime)
 
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 *data, CRumble::ERumble rumble, u32 length)
 
- Public Member Functions inherited from JKRDisposer
 JKRDisposer ()
 
virtual ~JKRDisposer ()
 

Static Public Member Functions

static BOOL init ()
 
static u32 read ()
 
static void checkResetSwitch ()
 
static void clearForReset ()
 
static JUTGamePadgetGamePad (int port)
 
static bool recalibrate (u32 mask)
 
static void setAnalogMode (u32 mode)
 
static void clearResetOccurred ()
 
static void setResetCallback (callbackFn callback, void *arg)
 
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 mResetHoldStartTime
 
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 = EStickMode1
 
static int sClampMode = EClampStick
 
static u8 mPadAssign [4]
 
static u32 sSuppressPadReset
 
static s32 sAnalogMode
 
static u32 sRumbleSupported
 

Member Enumeration Documentation

◆ EClampMode

Enumerator
EClampNone 
EClampStick 
EClampCircle 

◆ EPadPort

Enumerator
EPortInvalid 
EPort1 
EPort2 
EPort3 
EPort4 

◆ EStickMode

Enumerator
EStickMode1 

◆ EWhichStick

Enumerator
EMainStick 
ESubStick 

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  holdTime)

◆ 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  port)
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()

BOOL JUTGamePad::init ( )
static

◆ initList()

void JUTGamePad::initList ( )

◆ isPushing3ButtonReset()

bool JUTGamePad::isPushing3ButtonReset ( ) const
inline

◆ read()

u32 JUTGamePad::read ( )
static

◆ recalibrate()

bool JUTGamePad::recalibrate ( u32  mask)
static

◆ setAnalogMode()

static void JUTGamePad::setAnalogMode ( u32  mode)
inlinestatic

◆ setResetCallback()

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

◆ startMotorWave()

void JUTGamePad::startMotorWave ( void data,
CRumble::ERumble  rumble,
u32  length 
)
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

◆ mResetHoldStartTime

OSTime JUTGamePad::mResetHoldStartTime

◆ mRumble

CRumble JUTGamePad::mRumble

◆ mSubStick

CStick JUTGamePad::mSubStick

◆ sAnalogMode

s32 JUTGamePad::sAnalogMode
static

◆ sClampMode

int JUTGamePad::sClampMode = EClampStick
static

◆ sRumbleSupported

u32 JUTGamePad::sRumbleSupported
static

◆ sStickMode

JUTGamePad::EStickMode JUTGamePad::sStickMode = EStickMode1
static

◆ sSuppressPadReset

u32 JUTGamePad::sSuppressPadReset
static

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