@@ -198,6 +198,8 @@ void InterfacePane::CreateInGame()
198198 new ConfigBool (tr (" Use Panic Handlers" ), Config::MAIN_USE_PANIC_HANDLERS);
199199 m_checkbox_enable_osd =
200200 new ConfigBool (tr (" Show On-Screen Display Messages" ), Config::MAIN_OSD_MESSAGES);
201+ m_checkbox_adapter_warning =
202+ new ConfigBool (tr (" Show Adapter Poll Rate Warning" ), Config::MAIN_SHOW_ADAPTER_WARNING);
201203 m_checkbox_show_active_title =
202204 new ConfigBool (tr (" Show Active Title in Window Title" ), Config::MAIN_SHOW_ACTIVE_TITLE);
203205 m_checkbox_pause_on_focus_lost =
@@ -228,6 +230,7 @@ void InterfacePane::CreateInGame()
228230 groupbox_layout->addWidget (m_checkbox_confirm_on_stop);
229231 groupbox_layout->addWidget (m_checkbox_use_panic_handlers);
230232 groupbox_layout->addWidget (m_checkbox_enable_osd);
233+ groupbox_layout->addWidget (m_checkbox_adapter_warning);
231234 groupbox_layout->addWidget (m_checkbox_show_active_title);
232235 groupbox_layout->addWidget (m_checkbox_pause_on_focus_lost);
233236 groupbox_layout->addWidget (mouse_groupbox);
@@ -372,6 +375,11 @@ void InterfacePane::AddDescriptions()
372375 QT_TR_NOOP (" Shows on-screen display messages over the render window. These messages "
373376 " disappear after several seconds."
374377 " <br><br><dolphin_emphasis>If unsure, leave this checked.</dolphin_emphasis>" );
378+ static constexpr char TR_ADAPTER_WARNING_DESCRIPTION[] =
379+ QT_TR_NOOP (" This setting makes Dolphin warn and show a message when inputs are being read at a reduced rate when an adapter problem is detected."
380+ " This should only occur when your adapter returns something other than LIBUSB_SUCCESS."
381+ " Before turning this off, try reinstalling drivers and switching USB ports."
382+ " <br><br><dolphin_emphasis>If unsure, leave this checked.</dolphin_emphasis>" );
375383 static constexpr char TR_SHOW_ACTIVE_TITLE_DESCRIPTION[] =
376384 QT_TR_NOOP (" Shows the active game title in the render window's title bar."
377385 " <br><br><dolphin_emphasis>If unsure, leave this checked.</dolphin_emphasis>" );
@@ -420,6 +428,8 @@ void InterfacePane::AddDescriptions()
420428 m_checkbox_use_panic_handlers->SetDescription (tr (TR_USE_PANIC_HANDLERS_DESCRIPTION));
421429
422430 m_checkbox_enable_osd->SetDescription (tr (TR_ENABLE_OSD_DESCRIPTION));
431+
432+ m_checkbox_adapter_warning->SetDescription (tr (TR_ADAPTER_WARNING_DESCRIPTION));
423433
424434 m_checkbox_show_active_title->SetDescription (tr (TR_SHOW_ACTIVE_TITLE_DESCRIPTION));
425435
0 commit comments