From 5c68de5e803a715c7e87006a1dfbaeceb36654c7 Mon Sep 17 00:00:00 2001 From: LaurentGom Date: Tue, 5 Jan 2010 19:18:20 +0000 Subject: [PATCH] Forgot something in last commit :) git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/branches/sfml2@1324 4e206d99-4929-0410-ac5d-dfc041789085 --- src/SFML/Window/Input.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/SFML/Window/Input.cpp b/src/SFML/Window/Input.cpp index 00507ac6..87c91b04 100644 --- a/src/SFML/Window/Input.cpp +++ b/src/SFML/Window/Input.cpp @@ -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; }