From 5f3c8248c72e43dc6078d3bfb225e38f1720292a Mon Sep 17 00:00:00 2001 From: Mikko Rasa Date: Tue, 2 Nov 2021 11:54:42 +0200 Subject: [PATCH] Adapt to container type change in mspcore --- source/input/linux/gamecontroller.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/source/input/linux/gamecontroller.cpp b/source/input/linux/gamecontroller.cpp index 38d9d2b..3a2baa8 100644 --- a/source/input/linux/gamecontroller.cpp +++ b/source/input/linux/gamecontroller.cpp @@ -1,5 +1,6 @@ #include #include +#include #include #include #include @@ -42,9 +43,9 @@ unsigned GameController::detect() Private::detected_controllers.clear(); FS::Path dev_input = "/dev/input"; - list devices = FS::list_filtered(dev_input, "^js[0-9]+"); - devices.sort(); - for(list::const_iterator i=devices.begin(); i!=devices.end(); ++i) + vector devices = FS::list_filtered(dev_input, "^js[0-9]+"); + sort(devices); + for(vector::const_iterator i=devices.begin(); i!=devices.end(); ++i) // TODO check permissions Private::detected_controllers.push_back((dev_input / *i).str()); -- 2.45.2