#include <seadControllerWrapperBase.h>
Inherits sead::ControllerBase, and sead::IDisposer.
Inherited by sead::ControllerWrapper.
Public Member Functions | |
| ControllerWrapperBase () | |
| ~ControllerWrapperBase () override | |
| virtual void | calc (u32 prev_hold, bool prev_pointer_on)=0 |
| 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 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 |
| Public Member Functions inherited from sead::IDisposer | |
| IDisposer () | |
| virtual | ~IDisposer () |
Protected Member Functions | |
| 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 | |
| Controller * | mController |
| bool | mIsEnable |
| ListNode | mListNode |
| u8 | mPadConfig [cPadIdx_MaxBase] |
| Protected Attributes inherited from sead::ControllerBase | |
| 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 |
Friends | |
| class | Controller |
Additional Inherited Members | |
| Static Public Attributes inherited from sead::ControllerBase | |
| static const f32 | cStickHoldThresholdDefault = 0.5f |
| static const f32 | cStickReleaseThresholdDefault = 0.25f |
| static const Vector2f | cInvalidPointer |
| static const Vector2i | cInvalidPointerS32 |
| Protected Types inherited from sead::ControllerBase | |
| enum | { cPadIdx_MaxBase = 32 } |
| enum | PointerFlagMask { cPointerOn = 1 << 0 , cPointerOnNow = 1 << 1 , cPointerOffNow = 1 << 2 , cPointerUnkFlag3 = 1 << 3 } |
| enum | { cCrossUp , cCrossDown , cCrossLeft , cCrossRight } |
| sead::ControllerWrapperBase::ControllerWrapperBase | ( | ) |
|
override |
|
pure virtual |
Implemented in sead::ControllerWrapper.
|
virtual |
|
protectedvirtual |
| void sead::ControllerWrapperBase::registerWith | ( | Controller * | controller, |
| bool | copy_repeat_setting ) |
| void sead::ControllerWrapperBase::unregister | ( | ) |
| void sead::ControllerWrapperBase::copyRepeatSetting | ( | const Controller * | controller | ) |
| void sead::ControllerWrapperBase::setEnable | ( | bool | enable | ) |
| void sead::ControllerWrapperBase::setEnableOtherWrappers | ( | bool | enable | ) | const |
|
friend |
|
protected |
|
protected |
|
protected |
|
protected |