diff options
| author | flacs <tilkax@gmail.com> | 2016-12-26 01:53:01 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2016-12-26 01:53:01 +0100 |
| commit | fdf693f02f51f6b662dbc2f294a06f2ee774cb52 (patch) | |
| tree | 07a3c4c3899d50edbbed957b60d1617f22baffe7 /Source/Core/InputCommon/ControllerInterface | |
| parent | 8c99f6002617069d4e5ddb0b01690641c9b9cd33 (diff) | |
| parent | 57a005ff3e65e131f95686b96230120f198ac9bd (diff) | |
Merge pull request #4562 from Tilka/evdev
evdev: reduce startup time
Diffstat (limited to 'Source/Core/InputCommon/ControllerInterface')
| -rw-r--r-- | Source/Core/InputCommon/ControllerInterface/evdev/evdev.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/Core/InputCommon/ControllerInterface/evdev/evdev.cpp b/Source/Core/InputCommon/ControllerInterface/evdev/evdev.cpp index 58f92f29a4..bb29e216cd 100644 --- a/Source/Core/InputCommon/ControllerInterface/evdev/evdev.cpp +++ b/Source/Core/InputCommon/ControllerInterface/evdev/evdev.cpp @@ -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)); } } |
