sead
Loading...
Searching...
No Matches
sead::ControllerMgr Class Reference

#include <seadControllerMgr.h>

Inherits sead::CalculateTask.

Classes

class  ConstructArg
struct  Parameter

Public Member Functions

 ControllerMgr ()
 ControllerMgr (const TaskConstructArg &arg)
virtual ~ControllerMgr ()
virtual void prepare ()
virtual void calc ()
void initialize (s32 controller_max, Heap *heap)
void finalize ()
void initializeDefault (Heap *heap)
void finalizeDefault ()
ControllergetControllerByOrder (ControllerDefine::ControllerId id, s32 index) const
ControlDevicegetControlDevice (ControllerDefine::DeviceId id) const
ControllerAddongetControllerAddon (s32 index, ControllerDefine::AddonId id) const
template<typename T>
getControllerByOrderAs (s32 index) const
template<typename T>
getControlDeviceAs () const
template<typename T>
getControllerAddonAs (s32 index) const
s32 findControllerPort (const Controller *controller) const
Public Member Functions inherited from sead::CalculateTask
 CalculateTask (const TaskConstructArg &arg)
 CalculateTask (const TaskConstructArg &arg, const char *name)
void pauseCalc (bool b) override
void pauseDraw (bool b) override
void pauseCalcRec (bool b) override
void pauseDrawRec (bool b) override
void pauseCalcChild (bool b) override
void pauseDrawChild (bool b) override
virtual ~CalculateTask ()
void attachCalcImpl () override
void attachDrawImpl () override
void detachCalcImpl () override
void detachDrawImpl () override
const RuntimeTypeInfo::InterfacegetCorrespondingMethodTreeMgrTypeInfo () const override
MethodTreeNodegetMethodTreeNode (s32 method_type) override
Public Member Functions inherited from sead::TaskBase
 TaskBase (const TaskConstructArg &arg)
 TaskBase (const TaskConstructArg &arg, const char *name)
virtual ~TaskBase ()
virtual void enterCommon ()
virtual void enter ()
virtual void exit ()
virtual void onEvent (const TaskEvent &)
virtual void onDestroy ()
void doneDestroy ()
void detachCalc ()
void detachDraw ()
void detachCalcDraw ()
FrameworkgetFramework () const
MethodTreeMgrgetMethodTreeMgr () const
template<typename T>
T * getParameter () const
void adjustHeapAll ()
TaskBasegetParentTask () const
HeapgetHeap ()
TaskMgrgetTaskMgr () const
Tag getTag () const
Public Member Functions inherited from sead::TTreeNode< TaskBase * >
 TTreeNode ()
TTreeNode< TaskBase * > * parent () const
TTreeNode< TaskBase * > * child () const
TTreeNode< TaskBase * > * next () const
TTreeNode< TaskBase * > * prev () const
TTreeNode< TaskBase * > * findRoot ()
void pushBackSibling (TTreeNode< TaskBase * > *o)
void pushBackChild (TTreeNode< TaskBase * > *o)
void pushFrontChild (TTreeNode< TaskBase * > *o)
void insertBeforeSelf (TTreeNode< TaskBase * > *o)
void insertAfterSelf (TTreeNode< TaskBase * > *o)
TaskBase *& val ()
nextIterator nextBegin () const
nextConstIterator nextConstBegin () const
nextIterator nextEnd () const
nextConstIterator nextConstEnd () const
nextIterator childBegin () const
nextConstIterator childConstBegin () const
nextIterator childEnd () const
nextConstIterator childConstEnd () const
depthFirstIterator depthFirstBegin () const
depthFirstConstIterator depthFirstConstBegin () const
depthFirstIterator depthFirstWithoutRootBegin () const
depthFirstConstIterator depthFirstWithoutRootConstBegin () const
depthFirstIterator depthFirstEnd () const
depthFirstConstIterator depthFirstConstEnd () const
Public Member Functions inherited from sead::TreeNode
 TreeNode ()
void clearLinks ()
void detachAll ()
void detachSubTree ()
void pushBackSibling (TreeNode *n)
void pushBackChild (TreeNode *n)
void pushFrontChild (TreeNode *n)
void insertBeforeSelf (TreeNode *n)
void insertAfterSelf (TreeNode *n)
bool isRoot () const
bool isLeaf () const
const TreeNodefindRoot () const
TreeNodefindRoot ()
s32 countChildren () const
Public Member Functions inherited from sead::IDisposer
 IDisposer ()
virtual ~IDisposer ()
Public Member Functions inherited from sead::INamable
 INamable ()
 INamable (const SafeString &name)
void setName (const SafeString &name)
const SafeStringgetName () const

Private Attributes

OffsetList< ControlDevicemDevices
PtrArray< ControllermControllers

Additional Inherited Members

Public Types inherited from sead::TaskBase
enum  State {
  cCreated = 0 , cPrepare = 1 , cPrepareDone = 2 , cSleep = 3 ,
  cRunning = 4 , cDying = 5 , cDestroyable = 6 , cDead = 7
}
enum  Tag { cSystem = 0 , cApp = 1 }
typedef TListNode< TaskBase * > ListNode
typedef TList< TaskBase * > List
Public Attributes inherited from sead::CalculateTask
MethodTreeNode mCalcNode
Protected Member Functions inherited from sead::TreeNode
void clearChildLinksRecursively_ ()
Protected Attributes inherited from sead::TaskBase
TaskParametermParameter
BitFlag32 mInternalFlag
ListNode mTaskListNode
HeapArray mHeapArray
TaskMgrmTaskMgr
State mState
Tag mTag
TaskClassID mClassID
Protected Attributes inherited from sead::TTreeNode< TaskBase * >
TaskBasemData
Protected Attributes inherited from sead::TreeNode
TreeNodemParent
TreeNodemChild
TreeNodemNext
TreeNodemPrev

Constructor & Destructor Documentation

◆ ControllerMgr() [1/2]

sead::ControllerMgr::ControllerMgr ( )

◆ ControllerMgr() [2/2]

sead::ControllerMgr::ControllerMgr ( const TaskConstructArg & arg)

◆ ~ControllerMgr()

virtual sead::ControllerMgr::~ControllerMgr ( )
inlinevirtual

Member Function Documentation

◆ prepare()

void sead::ControllerMgr::prepare ( )
virtual

Reimplemented from sead::TaskBase.

◆ calc()

void sead::ControllerMgr::calc ( )
virtual

Reimplemented from sead::CalculateTask.

◆ initialize()

void sead::ControllerMgr::initialize ( s32 controller_max,
Heap * heap )

◆ finalize()

void sead::ControllerMgr::finalize ( )

◆ initializeDefault()

void sead::ControllerMgr::initializeDefault ( Heap * heap)

◆ finalizeDefault()

void sead::ControllerMgr::finalizeDefault ( )

◆ getControllerByOrder()

Controller * sead::ControllerMgr::getControllerByOrder ( ControllerDefine::ControllerId id,
s32 index ) const

◆ getControlDevice()

ControlDevice * sead::ControllerMgr::getControlDevice ( ControllerDefine::DeviceId id) const

◆ getControllerAddon()

ControllerAddon * sead::ControllerMgr::getControllerAddon ( s32 index,
ControllerDefine::AddonId id ) const

◆ getControllerByOrderAs()

template<typename T>
T sead::ControllerMgr::getControllerByOrderAs ( s32 index) const

◆ getControlDeviceAs()

template<typename T>
T sead::ControllerMgr::getControlDeviceAs ( ) const

◆ getControllerAddonAs()

template<typename T>
T sead::ControllerMgr::getControllerAddonAs ( s32 index) const

◆ findControllerPort()

s32 sead::ControllerMgr::findControllerPort ( const Controller * controller) const

Member Data Documentation

◆ mDevices

OffsetList<ControlDevice> sead::ControllerMgr::mDevices
private

◆ mControllers

PtrArray<Controller> sead::ControllerMgr::mControllers
private