From 9bda3a4ef26ebee5d20dd8ef2b7fd749ead5cbdc Mon Sep 17 00:00:00 2001 From: LaurentGom Date: Wed, 6 Jan 2010 07:16:22 +0000 Subject: [PATCH] git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/branches/sfml2@1325 4e206d99-4929-0410-ac5d-dfc041789085 --- src/SFML/Window/Input.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/SFML/Window/Input.cpp b/src/SFML/Window/Input.cpp index 87c91b04..d6ef8f43 100644 --- a/src/SFML/Window/Input.cpp +++ b/src/SFML/Window/Input.cpp @@ -76,7 +76,7 @@ bool Input::IsMouseButtonDown(Mouse::Button button) const //////////////////////////////////////////////////////////// bool Input::IsJoystickButtonDown(unsigned int joystick, unsigned int button) const { - if ((joystick < 2) && (button < 32)) + if ((joystick < 4) && (button < 32)) return myJoystickButtons[joystick][button]; else return false;