input: only unregister raw mouse devices if they were registered

This commit is contained in:
Megamouse 2024-05-21 23:18:48 +02:00
parent 898c92045d
commit 9c2e6a8f31
1 changed files with 1 additions and 1 deletions

View File

@ -219,7 +219,7 @@ raw_mouse_handler::raw_mouse_handler(bool ignore_config)
raw_mouse_handler::~raw_mouse_handler()
{
if (m_raw_mice.empty())
if (!m_registered_raw_input_devices)
{
return;
}