mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-01-04 02:45:12 +00:00
input/qt: increase max raw mouse devices to 16
This commit is contained in:
parent
b0550027c3
commit
49712f8f4e
@ -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<raw_mouse_handler>(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);
|
||||
|
Loading…
Reference in New Issue
Block a user