input: fix now_connect in raw mouse handler

This commit is contained in:
Megamouse
2024-05-21 22:51:21 +02:00
parent 58863c0c41
commit 5d6d42d15d
+1 -1
View File
@@ -260,7 +260,7 @@ void raw_mouse_handler::Init(const u32 max_connect)
std::set<u32> connected_mice{};
for (const auto& [handle, mouse] : m_raw_mice)
{
now_connect = std::max(now_connect, mouse.index());
now_connect = std::max(now_connect, mouse.index() + 1);
connected_mice.insert(mouse.index());
}