MCPcopy Create free account
hub / github.com/BobbyAnguelov/Esoterica / GetFirstConnectedController

Method GetFirstConnectedController

Code/Base/Input/InputSystem.cpp:101–112  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

99 }
100
101 ControllerDevice const* InputSystem::GetFirstConnectedController() const
102 {
103 for ( int32_t i = 0; i < s_maxControllers; i++ )
104 {
105 if ( m_controllers[i]->IsConnected() )
106 {
107 return m_controllers[i];
108 }
109 }
110
111 return nullptr;
112 }
113}

Callers 4

GetInputValueFunction · 0.80
GetInputStateFunction · 0.80
UpdateMethod · 0.80
UpdateMethod · 0.80

Calls 1

IsConnectedMethod · 0.45

Tested by

no test coverage detected