Forgot something in last commit :)
git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/branches/sfml2@1324 4e206d99-4929-0410-ac5d-dfc041789085
This commit is contained in:
parent
b31495fa01
commit
5c68de5e80
@ -45,12 +45,16 @@ myMouseY(0)
|
||||
{
|
||||
myJoystickButtons[0][i] = false;
|
||||
myJoystickButtons[1][i] = false;
|
||||
myJoystickButtons[2][i] = false;
|
||||
myJoystickButtons[3][i] = false;
|
||||
}
|
||||
|
||||
for (int i = 0; i < Joy::Count; ++i)
|
||||
{
|
||||
myJoystickAxis[0][i] = 0.f;
|
||||
myJoystickAxis[1][i] = 0.f;
|
||||
myJoystickAxis[2][i] = 0.f;
|
||||
myJoystickAxis[3][i] = 0.f;
|
||||
}
|
||||
}
|
||||
|
||||
@ -141,6 +145,8 @@ void Input::OnEvent(const Event& event)
|
||||
{
|
||||
myJoystickButtons[0][i] = false;
|
||||
myJoystickButtons[1][i] = false;
|
||||
myJoystickButtons[2][i] = false;
|
||||
myJoystickButtons[3][i] = false;
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user