New Super Mario Bros. U Headers
Loading...
Searching...
No Matches
InputMgr::Controller Class Reference

#include <InputMgr.h>

Inherits sead::ControllerBase.

Public Member Functions

 Controller ()
Angle getTilt (const Angle &dead_zone=Angle(5.0f), f32 scale=1.0f)
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 Vector2f & getLeftStick () const
const Vector2f & getRightStick () const
f32 getLeftAnalogTrigger () const
f32 getRightAnalogTrigger () const
const Vector2f & getPointer () const
const Vector2i & getPointerPrev () 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 BoundBox2f & getPointerBound () const

Private Attributes

u16 mTilt
u8 _132

Additional Inherited Members

Static Public Attributes inherited from sead::ControllerBase
static const f32 cStickHoldThresholdDefault
static const f32 cStickReleaseThresholdDefault
static const Vector2f cInvalidPointer
static const Vector2i cInvalidPointerS32
Protected Types inherited from sead::ControllerBase
enum  PointerFlagMask
Protected Member Functions inherited from sead::ControllerBase
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_ ()
bool isIdleBase_ ()
void setIdleBase_ ()
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

◆ Controller()

InputMgr::Controller::Controller ( )

Member Function Documentation

◆ getTilt()

Angle InputMgr::Controller::getTilt ( const Angle & dead_zone = Angle(5.0f),
f32 scale = 1.0f )

Member Data Documentation

◆ mTilt

u16 InputMgr::Controller::mTilt
private

◆ _132

u8 InputMgr::Controller::_132
private