Twilight Princess
Decompilation of The Legend of Zelda: Twilight Princess
Loading...
Searching...
No Matches
homebutton::Controller Class Reference

#include <HBMController.h>

+ Collaboration diagram for homebutton::Controller:

Public Member Functions

 Controller (int chan, RemoteSpk *spk)
 
 ~Controller ()
 
HBControllergetController ()
 
int getChan () const
 
f32 getSpeakerVol () const
 
RemoteSpkgetRemoteSpk () const
 
bool isRumbling ()
 
bool getBatteryFlag () const
 
void setSpeakerVol (f32 vol)
 
void setRumble ()
 
void clrRumble ()
 
s32 getInfoAsync (WPADInfo *info)
 
bool isPlayReady () const
 
bool isPlayingSound () const
 
bool isPlayingSoundId (int id) const
 
void setKpad (const HBMKPadData *con, bool updatePos)
 
void setInValidPos ()
 
void clrBatteryFlag ()
 
void clrKpadButton ()
 
void connect ()
 
void disconnect ()
 
void initSound ()
 
void updateSound ()
 
void playSound (nw4hbm::snd::SoundArchivePlayer *pSoundArchivePlayer, int id)
 
void soundOn ()
 
void soundOff (int msec)
 
void startMotor ()
 
void stopMotor ()
 
void initCallback ()
 
void clearCallback ()
 

Static Public Member Functions

static RemoteSpkGetInstance ()
 
static void SetInstance (RemoteSpk *p)
 

Static Private Member Functions

static void wpadConnectCallback (s32 chan, s32 result)
 
static void wpadExtensionCallback (s32 chan, s32 result)
 
static void soundOnCallback (OSAlarm *alm, OSContext *context)
 
static void ControllerCallback (s32 chan, s32 result)
 

Private Attributes

HBController mHBController
 
nw4hbm::snd::SoundHandle mSoundHandle
 
RemoteSpkremotespk
 
WPADConnectCallback mOldConnectCallback
 
WPADExtensionCallback mOldExtensionCallback
 
OSTime mPlaySoundTime
 
OSTime mStopSoundTime
 
bool mCallbackFlag
 
bool mSoundOffFlag
 
bool mCheckSoundTimeFlag
 
bool mCheckSoundIntervalFlag
 

Static Private Attributes

static bool sBatteryFlag [WPAD_MAX_CONTROLLERS]
 
static OSAlarm sAlarm [WPAD_MAX_CONTROLLERS]
 
static OSAlarm sAlarmSoundOff [WPAD_MAX_CONTROLLERS]
 
static ControllersThis [WPAD_MAX_CONTROLLERS]
 
static bool sSetInfoAsync [WPAD_MAX_CONTROLLERS]
 
static RemoteSpksPInstance
 
static s32 lbl_8025DBBC
 

Constructor & Destructor Documentation

◆ Controller()

homebutton::Controller::Controller ( int chan,
RemoteSpk * spk )

◆ ~Controller()

homebutton::Controller::~Controller ( )

Member Function Documentation

◆ clearCallback()

void homebutton::Controller::clearCallback ( )

◆ clrBatteryFlag()

void homebutton::Controller::clrBatteryFlag ( )

◆ clrKpadButton()

void homebutton::Controller::clrKpadButton ( )

◆ clrRumble()

void homebutton::Controller::clrRumble ( )
inline

◆ connect()

void homebutton::Controller::connect ( )

◆ ControllerCallback()

void homebutton::Controller::ControllerCallback ( s32 chan,
s32 result )
staticprivate

◆ disconnect()

void homebutton::Controller::disconnect ( )

◆ getBatteryFlag()

bool homebutton::Controller::getBatteryFlag ( ) const

◆ getChan()

int homebutton::Controller::getChan ( ) const

◆ getController()

HBController * homebutton::Controller::getController ( )

◆ getInfoAsync()

s32 homebutton::Controller::getInfoAsync ( WPADInfo * info)

◆ GetInstance()

static RemoteSpk * homebutton::Controller::GetInstance ( )
inlinestatic

◆ getRemoteSpk()

RemoteSpk * homebutton::Controller::getRemoteSpk ( ) const
inline

◆ getSpeakerVol()

f32 homebutton::Controller::getSpeakerVol ( ) const

◆ initCallback()

void homebutton::Controller::initCallback ( )

◆ initSound()

void homebutton::Controller::initSound ( )

◆ isPlayingSound()

bool homebutton::Controller::isPlayingSound ( ) const

◆ isPlayingSoundId()

bool homebutton::Controller::isPlayingSoundId ( int id) const

◆ isPlayReady()

bool homebutton::Controller::isPlayReady ( ) const

◆ isRumbling()

bool homebutton::Controller::isRumbling ( )
inline

◆ playSound()

void homebutton::Controller::playSound ( nw4hbm::snd::SoundArchivePlayer * pSoundArchivePlayer,
int id )

◆ SetInstance()

static void homebutton::Controller::SetInstance ( RemoteSpk * p)
inlinestatic

◆ setInValidPos()

void homebutton::Controller::setInValidPos ( )

◆ setKpad()

void homebutton::Controller::setKpad ( const HBMKPadData * con,
bool updatePos )

◆ setRumble()

void homebutton::Controller::setRumble ( )
inline

◆ setSpeakerVol()

void homebutton::Controller::setSpeakerVol ( f32 vol)

◆ soundOff()

void homebutton::Controller::soundOff ( int msec)

◆ soundOn()

void homebutton::Controller::soundOn ( )

◆ soundOnCallback()

void homebutton::Controller::soundOnCallback ( OSAlarm * alm,
OSContext * context )
staticprivate

◆ startMotor()

void homebutton::Controller::startMotor ( )

◆ stopMotor()

void homebutton::Controller::stopMotor ( )

◆ updateSound()

void homebutton::Controller::updateSound ( )

◆ wpadConnectCallback()

void homebutton::Controller::wpadConnectCallback ( s32 chan,
s32 result )
staticprivate

◆ wpadExtensionCallback()

void homebutton::Controller::wpadExtensionCallback ( s32 chan,
s32 result )
staticprivate

Member Data Documentation

◆ lbl_8025DBBC

s32 homebutton::Controller::lbl_8025DBBC
staticprivate

◆ mCallbackFlag

bool homebutton::Controller::mCallbackFlag
private

◆ mCheckSoundIntervalFlag

bool homebutton::Controller::mCheckSoundIntervalFlag
private

◆ mCheckSoundTimeFlag

bool homebutton::Controller::mCheckSoundTimeFlag
private

◆ mHBController

HBController homebutton::Controller::mHBController
private

◆ mOldConnectCallback

WPADConnectCallback homebutton::Controller::mOldConnectCallback
private

◆ mOldExtensionCallback

WPADExtensionCallback homebutton::Controller::mOldExtensionCallback
private

◆ mPlaySoundTime

OSTime homebutton::Controller::mPlaySoundTime
private

◆ mSoundHandle

nw4hbm::snd::SoundHandle homebutton::Controller::mSoundHandle
private

◆ mSoundOffFlag

bool homebutton::Controller::mSoundOffFlag
private

◆ mStopSoundTime

OSTime homebutton::Controller::mStopSoundTime
private

◆ remotespk

RemoteSpk* homebutton::Controller::remotespk
private

◆ sAlarm

OSAlarm homebutton::Controller::sAlarm
staticprivate

◆ sAlarmSoundOff

OSAlarm homebutton::Controller::sAlarmSoundOff
staticprivate

◆ sBatteryFlag

bool homebutton::Controller::sBatteryFlag
staticprivate

◆ sPInstance

RemoteSpk * homebutton::Controller::sPInstance
staticprivate

◆ sSetInfoAsync

bool homebutton::Controller::sSetInfoAsync
staticprivate

◆ sThis

Controller * homebutton::Controller::sThis
staticprivate

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