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

#include <d_lib.h>

+ Inheritance diagram for STControl:

Public Types

enum  EStickDir {
  TRIG_LEFT = 1 , TRIG_RIGHT , TRIG_UP = 4 , TRIG_UP_LEFT ,
  TRIG_UP_RIGHT , TRIG_DOWN = 8 , TRIG_DOWN_LEFT , TRIG_DOWN_RIGHT
}
 

Public Member Functions

 STControl ()
 
 STControl (s16 delayY, s16 delayX, s16 param_2, s16 param_3, f32 threshold, f32 param_5, s16 param_6, s16 param_7)
 
void setWaitParm (s16, s16, s16, s16, f32, f32, s16, s16)
 
void init ()
 
void Xinit ()
 
void Yinit ()
 
virtual f32 getValueStick ()
 
virtual s16 getAngleStick ()
 
u8 checkTrigger ()
 
bool checkLeftTrigger ()
 
bool checkRightTrigger ()
 
bool checkUpTrigger ()
 
bool checkDownTrigger ()
 
void setFirstWaitTime (s16 time)
 
s16 getYwaitTimer ()
 

Public Attributes

f32 mThreshold
 
f32 field_0x08
 
u8 mDirectionTrig
 
u8 field_0x0d
 
s16 field_0x0e
 
s16 field_0x10
 
s16 mRepeatDelayY
 
s16 mRepeatDelayX
 
s16 field_0x16
 
s16 mXwaitTimer
 
s16 mYwaitTimer
 
s16 field_0x1c
 
s16 field_0x1e
 
s16 field_0x20
 
s16 field_0x22
 
s16 field_0x24
 
s16 field_0x26
 
s16 mFirstWaitTime
 
s16 field_0x2a
 
s16 field_0x2c
 

Member Enumeration Documentation

◆ EStickDir

Enumerator
TRIG_LEFT 
TRIG_RIGHT 
TRIG_UP 
TRIG_UP_LEFT 
TRIG_UP_RIGHT 
TRIG_DOWN 
TRIG_DOWN_LEFT 
TRIG_DOWN_RIGHT 

Constructor & Destructor Documentation

◆ STControl() [1/2]

STControl::STControl ( )
inline

◆ STControl() [2/2]

STControl::STControl ( s16  delayY,
s16  delayX,
s16  param_2,
s16  param_3,
f32  threshold,
f32  param_5,
s16  param_6,
s16  param_7 
)

Member Function Documentation

◆ checkDownTrigger()

bool STControl::checkDownTrigger ( )

◆ checkLeftTrigger()

bool STControl::checkLeftTrigger ( )

◆ checkRightTrigger()

bool STControl::checkRightTrigger ( )

◆ checkTrigger()

u8 STControl::checkTrigger ( )

◆ checkUpTrigger()

bool STControl::checkUpTrigger ( )

◆ getAngleStick()

s16 STControl::getAngleStick ( )
virtual

Reimplemented in CSTControl.

◆ getValueStick()

f32 STControl::getValueStick ( )
virtual

Reimplemented in CSTControl.

◆ getYwaitTimer()

s16 STControl::getYwaitTimer ( )
inline

◆ init()

void STControl::init ( )

◆ setFirstWaitTime()

void STControl::setFirstWaitTime ( s16  time)
inline

◆ setWaitParm()

void STControl::setWaitParm ( s16  delayY,
s16  delayX,
s16  param_2,
s16  param_3,
f32  threshold,
f32  param_5,
s16  param_6,
s16  param_7 
)

◆ Xinit()

void STControl::Xinit ( )

◆ Yinit()

void STControl::Yinit ( )

Member Data Documentation

◆ field_0x08

f32 STControl::field_0x08

◆ field_0x0d

u8 STControl::field_0x0d

◆ field_0x0e

s16 STControl::field_0x0e

◆ field_0x10

s16 STControl::field_0x10

◆ field_0x16

s16 STControl::field_0x16

◆ field_0x1c

s16 STControl::field_0x1c

◆ field_0x1e

s16 STControl::field_0x1e

◆ field_0x20

s16 STControl::field_0x20

◆ field_0x22

s16 STControl::field_0x22

◆ field_0x24

s16 STControl::field_0x24

◆ field_0x26

s16 STControl::field_0x26

◆ field_0x2a

s16 STControl::field_0x2a

◆ field_0x2c

s16 STControl::field_0x2c

◆ mDirectionTrig

u8 STControl::mDirectionTrig

◆ mFirstWaitTime

s16 STControl::mFirstWaitTime

◆ mRepeatDelayX

s16 STControl::mRepeatDelayX

◆ mRepeatDelayY

s16 STControl::mRepeatDelayY

◆ mThreshold

f32 STControl::mThreshold

◆ mXwaitTimer

s16 STControl::mXwaitTimer

◆ mYwaitTimer

s16 STControl::mYwaitTimer

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