MCPcopy Create free account
hub / github.com/axmolengine/axmol / findController

Function findController

core/base/Controller-linux-win32.cpp:4200–4206  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4198 }
4199
4200 static std::vector<Controller*>::iterator findController(int deviceId)
4201 {
4202 // When controllers are disconnected, GLFW cannot provide their names. We only get their deviceId.
4203 auto iter = std::find_if(Controller::s_allController.begin(), Controller::s_allController.end(),
4204 [&](Controller* controller) { return deviceId == controller->_deviceId; });
4205 return iter;
4206 }
4207
4208 static void onConnected(std::string_view deviceName, int deviceId)
4209 {

Callers 8

onConnectedMethod · 0.85
onDisconnectedMethod · 0.85
onButtonEventMethod · 0.85
onAxisEventMethod · 0.85
onConnectedFunction · 0.85
onDisconnectedFunction · 0.85
onButtonEventFunction · 0.85
onAxisEventFunction · 0.85

Calls 2

beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected