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