Merge pull request #4562 from Tilka/evdev

evdev: reduce startup time
This commit is contained in:
flacs 2016-12-26 01:53:01 +01:00 committed by GitHub
commit fdf693f02f
1 changed files with 1 additions and 1 deletions

View File

@ -175,12 +175,12 @@ void PopulateDevices()
{
// Unfortunately udev gives us no way to filter out the non event device interfaces.
// So we open it and see if it works with evdev ioctls or not.
std::string name = GetName(devnode);
auto input = std::make_shared<evdevDevice>(devnode);
if (input->IsInteresting())
{
g_controller_interface.AddDevice(std::move(input));
std::string name = GetName(devnode);
s_devnode_name_map.insert(std::pair<std::string, std::string>(devnode, name));
}
}