New Super Mario Bros. U Headers
Loading...
Searching...
No Matches
SysControllerWrapper Class Reference

#include <SysControllerWrapper.h>

Inherits sead::ControllerWrapper.

Public Member Functions

 SysControllerWrapper ()
 ~SysControllerWrapper () override
void calc (u32 prev_hold, bool prev_pointer_on) override
void registerWith (SysController::Id id)
Public Member Functions inherited from sead::ControllerWrapper
 ControllerWrapper ()
 ~ControllerWrapper () override
u32 createPadMaskFromControllerPadMask_ (u32 controller_mask) const
void setPadConfig (s32 padbit_max, const u8 *pad_config, bool enable_stickcross_emulation)
Public Member Functions inherited from sead::ControllerWrapperBase
 ControllerWrapperBase ()
 ~ControllerWrapperBase () override
virtual void setIdle ()
void registerWith (Controller *controller, bool copy_repeat_setting)
void unregister ()
void copyRepeatSetting (const Controller *controller)
void setEnable (bool enable)
void setEnableOtherWrappers (bool enable) const
Public Member Functions inherited from sead::ControllerBase
 ControllerBase (s32 padBitMax, s32 leftStickCrossStartBit, s32 rightStickCrossStartBit, s32 touchKeyBit)
u32 getHoldMask () const
u32 getTrigMask () const
u32 getReleaseMask () const
u32 getRepeatMask () const
u32 getTrigMaskWithRepeat () const
u32 getPadHoldCount (s32 bit) const
const Vector2fgetLeftStick () const
const Vector2fgetRightStick () const
f32 getLeftAnalogTrigger () const
f32 getRightAnalogTrigger () const
const Vector2fgetPointer () const
const Vector2igetPointerPrev () const
bool isPointerOn () const
bool isPointerOnNow () const
bool isPointerOffNow () const
bool isPointerUnkFlag3 () const
bool isHold (u32 mask) const
bool isTrig (u32 mask) const
bool isHoldAll (u32 mask) const
bool isRelease (u32 mask) const
bool isRepeat (u32 mask) const
bool isTrigWithRepeat (u32 mask) const
void setPadRepeat (u32 mask, u8 delay_frame, u8 pulse_frame)
void setLeftStickCrossThreshold (f32 hold, f32 release)
void setRightStickCrossThreshold (f32 hold, f32 release)
void setPointerBound (const BoundBox2f &bound)
const BoundBox2fgetPointerBound () const
Public Member Functions inherited from sead::IDisposer
 IDisposer ()
virtual ~IDisposer ()

Static Public Attributes

static const u8 cPadConfig [cPadIdxCommon_Num]
Static Public Attributes inherited from sead::ControllerWrapper
static const u8 cPadConfigDefault [Controller::cPadIdx_Max]
Static Public Attributes inherited from sead::ControllerBase
static const f32 cStickHoldThresholdDefault
static const f32 cStickReleaseThresholdDefault
static const Vector2f cInvalidPointer
static const Vector2i cInvalidPointerS32

Additional Inherited Members

Protected Types inherited from sead::ControllerBase
enum  PointerFlagMask
Protected Member Functions inherited from sead::ControllerWrapperBase
virtual bool isIdle_ ()
Protected Member Functions inherited from sead::ControllerBase
bool isIdleBase_ ()
void setIdleBase_ ()
void setPointerWithBound_ (bool is_on, bool touchkey_hold, const Vector2f &pos)
void updateDerivativeParams_ (u32 prev_hold, bool prev_pointer_on)
u32 getStickHold_ (u32 prev_hold, const Vector2f &stick, f32 hold_threshold, f32 release_threshold, s32 start_bit)
u32 createStickCrossMask_ ()
Protected Attributes inherited from sead::ControllerWrapper
u8 mPadConfig [cPadIdx_MaxBase]
Protected Attributes inherited from sead::ControllerWrapperBase
ControllermController
bool mIsEnable
ListNode mListNode
u8 mPadConfig [cPadIdx_MaxBase]
Protected Attributes inherited from sead::ControllerBase
 cPadIdx_MaxBase
 cPointerOn
 cPointerOnNow
 cPointerOffNow
 cPointerUnkFlag3
 cCrossUp
 cCrossDown
 cCrossLeft
 cCrossRight
BitFlag32 mPadTrig
BitFlag32 mPadRelease
BitFlag32 mPadRepeat
BitFlag32 mPointerFlag
Vector2i mPointerS32
BoundBox2f mPointerBound
u32 mPadHoldCounts [cPadIdx_MaxBase]
u8 mPadRepeatDelays [cPadIdx_MaxBase]
u8 mPadRepeatPulses [cPadIdx_MaxBase]
f32 mLeftStickHoldThreshold
f32 mRightStickHoldThreshold
f32 mLeftStickReleaseThreshold
f32 mRightStickReleaseThreshold
s32 mPadBitMax
s32 mLeftStickCrossStartBit
s32 mRightStickCrossStartBit
s32 mTouchKeyBit
s32 mIdleFrame
BitFlag32 mPadHold
Vector2f mPointer
Vector2f mLeftStick
Vector2f mRightStick
f32 mLeftAnalogTrigger
f32 mRightAnalogTrigger

Constructor & Destructor Documentation

◆ SysControllerWrapper()

SysControllerWrapper::SysControllerWrapper ( )

◆ ~SysControllerWrapper()

SysControllerWrapper::~SysControllerWrapper ( )
override

Member Function Documentation

◆ calc()

void SysControllerWrapper::calc ( u32 prev_hold,
bool prev_pointer_on )
overridevirtual

Reimplemented from sead::ControllerWrapper.

◆ registerWith()

void SysControllerWrapper::registerWith ( SysController::Id id)

Member Data Documentation

◆ cPadConfig

const u8 SysControllerWrapper::cPadConfig[cPadIdxCommon_Num]
static