[InputMapper] Use "|" for separating entries instead of ",", since some companies have names like "x Ltd., something". [Mordae, AJ]

This commit is contained in:
AJ Kelly
2012-07-09 12:21:21 -05:00
parent 435fd9ef56
commit 105c1b74d6
2 changed files with 1221 additions and 1213 deletions
+5
View File
@@ -8,6 +8,11 @@ ________________________________________________________________________________
StepMania 5.0 ???? ?? | 20120???
--------------------------------------------------------------------------------
2012/07/09
----------
* [InputMapper] Use "|" for separating entries instead of ",", since some
companies have names like "x Ltd., something". [Mordae, AJ]
2012/07/06
----------
* [ScoreDisplayRave] Add FrameBase and FrameOver to the metrics. [AJ]
+5 -2
View File
@@ -667,7 +667,9 @@ bool InputMapper::CheckForChangedInputDevicesAndRemap( RString &sMessageOut )
// Strip non-joysticks.
vector<RString> vsLastSeenJoysticks;
split( g_sLastSeenInputDevices, ",", vsLastSeenJoysticks );
// Don't use "," since some vendors have a name like "company Ltd., etc".
// For now, use a pipe character. -aj, fix from Mordae.
split( g_sLastSeenInputDevices, "|", vsLastSeenJoysticks );
vector<RString> vsCurrent;
vector<RString> vsCurrentJoysticks;
@@ -709,7 +711,8 @@ bool InputMapper::CheckForChangedInputDevicesAndRemap( RString &sMessageOut )
LOG->Info( "%s", sMessageOut.c_str() );
g_sLastSeenInputDevices.Set( join(",",vsCurrent) );
// see above comment about not using ",". -aj
g_sLastSeenInputDevices.Set( join("|",vsCurrent) );
PREFSMAN->SavePrefsToDisk();
return true;