Remove g_bInputLinuxOrderByLocation preference

This commit is contained in:
teejusb
2025-03-01 23:25:47 -08:00
parent f0394b721e
commit 97c2f36491
+3 -14
View File
@@ -21,8 +21,6 @@
#include <errno.h>
Preference<bool> g_bInputLinuxOrderByLocation( "InputLinuxOrderByLocation", false );
RString getDevice(RString inputDir, RString type)
{
RString result = "";
@@ -86,18 +84,9 @@ LinuxInputManager::LinuxInputManager()
LOG->Info("LinuxInputManager: %s seems to have no eventNN or jsNN.", dName.c_str() );
}
if(g_bInputLinuxOrderByLocation)
{
// use Presort to sort the devices by unique location (like USB port/hub number.)
PresortPhysical(m_vsPendingEventDevices, "event");
PresortPhysical(m_vsPendingJoystickDevices, "js");
}
else
{
// Sort devices for more consistent numbering.
std::sort(m_vsPendingEventDevices.begin(), m_vsPendingEventDevices.end(), cmpDevices);
std::sort(m_vsPendingJoystickDevices.begin(), m_vsPendingJoystickDevices.end(), cmpDevices);
}
// use Presort to sort the devices by unique location (like USB port/hub number.)
PresortPhysical(m_vsPendingEventDevices, "event");
PresortPhysical(m_vsPendingJoystickDevices, "js");
closedir(sysClassInput);
}