From 49712f8f4ee28ce4f69d1ca5a6d5448b50f02417 Mon Sep 17 00:00:00 2001 From: Megamouse Date: Wed, 22 May 2024 00:37:44 +0200 Subject: [PATCH] input/qt: increase max raw mouse devices to 16 --- rpcs3/rpcs3qt/raw_mouse_settings_dialog.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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);