only use timer for axis events

git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@3361 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
auria 2009-04-05 00:16:52 +00:00
parent 96ac216d34
commit 55aa2dd525

View File

@ -357,7 +357,7 @@ void InputManager::input(Input::InputType type, int id0, int id1, int id2,
return; // only those bindings are accepted in menus for now.
evt.PressedDown = abs(value) > MAX_VALUE/2;
if(evt.PressedDown)
if(evt.PressedDown && type == Input::IT_STICKMOTION)
{
// minimum time between two gamepad events in menu
m_timer_in_use = true;