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

Function onDisconnected

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

Source from the content-addressed store, hash-verified

4283 }
4284
4285 static void onDisconnected(int deviceId)
4286 {
4287 // Check whether the controller is already registered
4288 auto iter = findController(deviceId);
4289 if (iter == Controller::s_allController.end())
4290 {
4291 AXLOGE("ControllerImpl Error: Could not find the controller!");
4292 return;
4293 }
4294
4295 (*iter)->onDisconnected();
4296 Controller::s_allController.erase(iter);
4297 }
4298
4299 static void onButtonEvent(int deviceId, int keyCode, bool isPressed, float value, bool isAnalog)
4300 {

Calls 4

findControllerFunction · 0.85
onDisconnectedMethod · 0.65
endMethod · 0.45
eraseMethod · 0.45

Tested by

no test coverage detected