Two loops.
This commit is contained in:
+3
-5
@@ -167,11 +167,11 @@ bool InputQueueCode::Load( RString sButtonsNames )
|
|||||||
|
|
||||||
vector<RString> asPresses;
|
vector<RString> asPresses;
|
||||||
split( sButtonsNames, ",", asPresses, false );
|
split( sButtonsNames, ",", asPresses, false );
|
||||||
FOREACH( RString, asPresses, sPress )
|
for (RString &sPress : asPresses)
|
||||||
{
|
{
|
||||||
vector<RString> asButtonNames;
|
vector<RString> asButtonNames;
|
||||||
|
|
||||||
split( *sPress, "-", asButtonNames, false );
|
split( sPress, "-", asButtonNames, false );
|
||||||
|
|
||||||
if( asButtonNames.size() < 1 )
|
if( asButtonNames.size() < 1 )
|
||||||
{
|
{
|
||||||
@@ -181,10 +181,8 @@ bool InputQueueCode::Load( RString sButtonsNames )
|
|||||||
}
|
}
|
||||||
|
|
||||||
m_aPresses.push_back( ButtonPress() );
|
m_aPresses.push_back( ButtonPress() );
|
||||||
for( unsigned i=0; i<asButtonNames.size(); i++ ) // for each button in this code
|
for (RString sButtonName : asButtonNames) // for each button in this code
|
||||||
{
|
{
|
||||||
RString sButtonName = asButtonNames[i];
|
|
||||||
|
|
||||||
bool bHold = false;
|
bool bHold = false;
|
||||||
bool bNotHold = false;
|
bool bNotHold = false;
|
||||||
while(1)
|
while(1)
|
||||||
|
|||||||
Reference in New Issue
Block a user