Input: fix initial mouse config reload

This commit is contained in:
Megamouse 2024-08-08 05:35:23 +02:00
parent 548cc074f4
commit bc23615508
3 changed files with 14 additions and 3 deletions

View file

@ -20,8 +20,12 @@ void basic_mouse_handler::Init(const u32 max_connect)
return;
}
g_cfg_mouse.from_default();
g_cfg_mouse.load();
if (!g_cfg_mouse.load())
{
input_log.notice("basic_mouse_handler: Could not load basic mouse config. Using defaults.");
}
g_cfg_mouse.reload_requested = true;
reload_config();