11 #include "ControllerTree.h" 12 #include "games/controllers/ControllerTypes.h" 29 bool bConnected =
false;
43 std::vector<ControllerVertex> vertices;
73 unsigned int GetWidth()
const {
return static_cast<unsigned int>(m_grid.size()); }
99 enum class GRID_DIRECTION
113 static unsigned int AddPorts(
const PortVec& ports,
ControllerGrid& grid);
125 static unsigned int AddController(
const CPortNode& port,
127 std::vector<ControllerVertex>& column,
141 static unsigned int AddHub(
const PortVec& ports,
151 static void AddInvisible(std::vector<ControllerVertex>& column);
172 unsigned int m_height = 0;
unsigned int GetHeight() const
Get the height (deepest controller) of the controller grid.
Definition: ControllerGrid.h:81
Node in the controller tree.
Definition: ControllerNode.h:31
std::vector< ControllerColumn > ControllerGrid
Collection of controllers in a grid layout.
Definition: ControllerGrid.h:51
Column of controllers in the grid.
Definition: ControllerGrid.h:41
const ControllerGrid & GetGrid() const
Access the controller grid.
Definition: ControllerGrid.h:86
Collection of nodes that can be connected to this port.
Definition: PortNode.h:28
unsigned int GetWidth() const
Get the width of the controller grid.
Definition: ControllerGrid.h:73
Definition: AudioDecoder.h:18
std::shared_ptr< CController > ControllerPtr
Smart pointer to a game controller (CController)
Definition: ControllerTypes.h:25
A branch in the controller tree.
Definition: ControllerHub.h:25
Class to encapsulate grid operations.
Definition: ControllerGrid.h:58
Vertex in the grid of controllers.
Definition: ControllerGrid.h:26
PORT_TYPE
Type of input provided by a hardware or controller port.
Definition: ControllerTypes.h:39
std::vector< ControllerPtr > ControllerVector
Vector of smart pointers to a game controller (CController)
Definition: ControllerTypes.h:32