diff --git a/src/SFML/Window/Input.cpp b/src/SFML/Window/Input.cpp index 33b7161e0..01dd54fce 100644 --- a/src/SFML/Window/Input.cpp +++ b/src/SFML/Window/Input.cpp @@ -162,6 +162,7 @@ void Input::ResetStates() for (int j = 0; j < Joy::AxisCount; ++j) myJoystickAxis[i][j] = 0.f; + myJoystickAxis[i][Joy::AxisPOV] = -1.f; } } diff --git a/src/SFML/Window/Win32/Joystick.cpp b/src/SFML/Window/Win32/Joystick.cpp index 5d37e4c7b..e5e16a90f 100644 --- a/src/SFML/Window/Win32/Joystick.cpp +++ b/src/SFML/Window/Win32/Joystick.cpp @@ -94,7 +94,7 @@ void Joystick::Initialize(unsigned int Index) //////////////////////////////////////////////////////////// JoystickState Joystick::UpdateState() { - JoystickState State = {0}; + JoystickState State; if (myIsConnected) {