mirror of https://github.com/stella-emu/stella.git
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:
parent
e47bf71dbb
commit
f489007609
|
@ -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");
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue