From f4890076092a0dcedbc68aaf1fd0d182c7e41e31 Mon Sep 17 00:00:00 2001 From: stephena Date: Wed, 28 Dec 2011 00:25:19 +0000 Subject: [PATCH] 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 --- src/emucore/Settings.cxx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/emucore/Settings.cxx b/src/emucore/Settings.cxx index f8bfd8b05..02f55bb96 100644 --- a/src/emucore/Settings.cxx +++ b/src/emucore/Settings.cxx @@ -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"); }