| 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 | { |
no test coverage detected