From: Mikko Rasa Date: Tue, 2 Nov 2021 09:54:42 +0000 (+0200) Subject: Adapt to container type change in mspcore X-Git-Url: http://git.tdb.fi/?a=commitdiff_plain;h=5f3c8248c72e43dc6078d3bfb225e38f1720292a;p=libs%2Fgui.git Adapt to container type change in mspcore --- 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());