File tree Expand file tree Collapse file tree 1 file changed +1
-22
lines changed Expand file tree Collapse file tree 1 file changed +1
-22
lines changed Original file line number Diff line number Diff line change @@ -297,28 +297,7 @@ wxWindow* InputSettings2::initialize_page(size_t index)
297
297
298
298
std::pair<size_t , size_t > InputSettings2::get_emulated_controller_types () const
299
299
{
300
- size_t vpad = 0 , wpad = 0 ;
301
- for (size_t i = 0 ; i < m_notebook->GetPageCount (); ++i)
302
- {
303
- auto * page = m_notebook->GetPage (i);
304
- auto * page_data = (wxControllerPageData*)page->GetClientObject ();
305
- if (!page_data)
306
- continue ;
307
-
308
- if (!page_data->ref ().m_controller ) // = disabled
309
- continue ;
310
-
311
- const auto api_type = page_data->ref ().m_controller ->type ();
312
- if (api_type >= EmulatedController::MAX)
313
- continue ;
314
-
315
- if (api_type == EmulatedController::VPAD)
316
- ++vpad;
317
- else
318
- ++wpad;
319
- }
320
-
321
- return std::make_pair (vpad, wpad);
300
+ return InputManager::instance ().get_controller_count ();
322
301
}
323
302
324
303
std::shared_ptr<ControllerBase> InputSettings2::get_active_controller () const
You can’t perform that action at this time.
0 commit comments