Two loops here.
This commit is contained in:
+4
-4
@@ -109,8 +109,8 @@ void RageInput::AddHandler( InputHandler *pHandler )
|
||||
|
||||
vector<InputDeviceInfo> aDeviceInfo;
|
||||
hand.m_pDevice->GetDevicesAndDescriptions( aDeviceInfo );
|
||||
FOREACH_CONST( InputDeviceInfo, aDeviceInfo, idi )
|
||||
g_mapDeviceToHandler[idi->id] = pHandler;
|
||||
for (InputDeviceInfo const &idi : aDeviceInfo)
|
||||
g_mapDeviceToHandler[idi.id] = pHandler;
|
||||
}
|
||||
|
||||
/** @brief Return the first InputDriver for the requested InputDevice. */
|
||||
@@ -187,8 +187,8 @@ public:
|
||||
vector<InputDeviceInfo> vDevices;
|
||||
p->GetDevicesAndDescriptions( vDevices );
|
||||
vector<RString> vsDescriptions;
|
||||
FOREACH_CONST( InputDeviceInfo, vDevices, idi )
|
||||
vsDescriptions.push_back( idi->sDesc );
|
||||
for (InputDeviceInfo const &idi : vDevices)
|
||||
vsDescriptions.push_back( idi.sDesc );
|
||||
LuaHelpers::CreateTableFromArray( vsDescriptions, L );
|
||||
return 1;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user