Fixed wrong MouseAxisType enum values in Settings.

Eventually I'll find a more elegant way to represent this.


git-svn-id: svn://svn.code.sf.net/p/stella/code/trunk@2301 8b62c5a3-ac7e-4cc8-8f21-d9a121418aba
This commit is contained in:
stephena 2011-12-28 00:25:19 +00:00
parent e47bf71dbb
commit f489007609
1 changed files with 2 additions and 1 deletions

View File

@ -281,7 +281,8 @@ void Settings::validate()
s = getString("mcontrol");
if(s != "auto")
{
if(s.length() != 2 || s[0] < '0' || s[0] > '9' || s[1] < '0' || s[1] > '9')
// Note: these constants are from Controller::MouseAxisType enum
if(s.length() != 2 || s[0] < '0' || s[0] > '5' || s[1] < '0' || s[1] > '5')
setInternal("mcontrol", "auto");
}