| 104 | } |
| 105 | |
| 106 | static void onAxisEvent(std::string_view deviceName, int deviceId, int axisCode, float value, bool isAnalog) |
| 107 | { |
| 108 | auto iter = findController(deviceName, deviceId); |
| 109 | if (iter == Controller::s_allController.end()) |
| 110 | { |
| 111 | AXLOGD("onAxisEvent:connect new controller."); |
| 112 | onConnected(deviceName, deviceId); |
| 113 | iter = findController(deviceName, deviceId); |
| 114 | } |
| 115 | |
| 116 | (*iter)->onAxisEvent(axisCode, value, isAnalog); |
| 117 | } |
| 118 | |
| 119 | private: |
| 120 | Controller* _controller; |
nothing calls this directly
no test coverage detected