early-access version 2649

This commit is contained in:
pineappleEA
2022-04-06 05:09:11 +02:00
parent 2ffe9685e5
commit 447daccd21
19 changed files with 103 additions and 19 deletions

View File

@@ -1207,4 +1207,12 @@ void EmulatedController::DeleteCallback(int key) {
}
callback_list.erase(iterator);
}
void EmulatedController::RemoveServiceCallbacks() {
std::lock_guard lock{mutex};
const auto count = std::erase_if(
callback_list, [](const auto& callback) { return callback.second.is_npad_service; });
LOG_DEBUG(Input, "Elements deleted {}", count);
}
} // namespace Core::HID