Skip to content

Commit

Permalink
Fix sending digital action instead of analog action
Browse files Browse the repository at this point in the history
  • Loading branch information
garbear committed May 3, 2015
1 parent 94ab521 commit 1b1c5ae
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions xbmc/input/joysticks/DefaultJoystickInputHandler.cpp
Expand Up @@ -107,7 +107,7 @@ bool CDefaultJoystickInputHandler::OnButtonMotion(unsigned int featureIndex, flo
if (action.GetID() > 0)
{
CAction actionWithAmount(action.GetID(), magnitude, 0.0f, action.GetName());
CApplicationMessenger::Get().SendAction(action);
CApplicationMessenger::Get().SendAction(actionWithAmount);
}
}

Expand Down Expand Up @@ -142,7 +142,7 @@ bool CDefaultJoystickInputHandler::OnAnalogStickMotion(unsigned int featureIndex
if (buttonKeyId == buttonKeyIds[i])
{
CAction actionWithAmount(action.GetID(), magnitude, 0.0f, action.GetName());
CApplicationMessenger::Get().SendAction(action);
CApplicationMessenger::Get().SendAction(actionWithAmount);
}
}
}
Expand Down

0 comments on commit 1b1c5ae

Please sign in to comment.