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

Function onAxisEvent

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

Source from the content-addressed store, hash-verified

4310 }
4311
4312 static void onAxisEvent(int deviceId, int axisCode, float value, bool isAnalog)
4313 {
4314 auto iter = findController(deviceId);
4315 if (iter == Controller::s_allController.end())
4316 {
4317 AXLOGD("ControllerImpl::onAxisEvent: new controller detected. Registering...");
4318 onConnected(glfwGetJoystickName(deviceId), deviceId);
4319 iter = findController(deviceId);
4320 }
4321
4322 (*iter)->onAxisEvent(axisCode, value, isAnalog);
4323 }
4324
4325 static void handleConnectionsAndDisconnections(int deviceId, int event)
4326 {

Calls 5

findControllerFunction · 0.85
onConnectedFunction · 0.85
glfwGetJoystickNameFunction · 0.85
onAxisEventMethod · 0.65
endMethod · 0.45

Tested by

no test coverage detected