Make highlighting of devices in use more selective

git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@12194 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
auria
2012-12-06 23:56:56 +00:00
parent 857bf04a19
commit 92fea12684

View File

@@ -284,7 +284,7 @@ void OptionsScreenInput::filterInput(Input::InputType type,
}
}
if (internal_name.size() > 0)
if (internal_name.size() > 0 && abs(value) > Input::MAX_VALUE/2)
{
devices->markItemRed(internal_name.c_str());
m_highlights[internal_name] = 0.25f;