diff --git a/rpcs3/rpcs3qt/raw_mouse_settings_dialog.cpp b/rpcs3/rpcs3qt/raw_mouse_settings_dialog.cpp index 4c07667049..0d2dc885f2 100644 --- a/rpcs3/rpcs3qt/raw_mouse_settings_dialog.cpp +++ b/rpcs3/rpcs3qt/raw_mouse_settings_dialog.cpp @@ -62,8 +62,10 @@ raw_mouse_settings_dialog::raw_mouse_settings_dialog(QWidget* parent) cfg_log.notice("Could not load raw mouse config. Using defaults."); } + constexpr u32 max_devices = 16; + g_raw_mouse_handler = std::make_unique(true); - g_raw_mouse_handler->Init(::size32(g_cfg_raw_mouse.players)); + g_raw_mouse_handler->Init(std::max(max_devices, ::size32(g_cfg_raw_mouse.players))); g_raw_mouse_handler->set_mouse_press_callback([this](const std::string& device_name, s32 cell_code, bool pressed) { mouse_press(device_name, cell_code, pressed);