Fixed POV value initialized to 0 instead of -1 in sf::Input

git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/trunk@1331 4e206d99-4929-0410-ac5d-dfc041789085
This commit is contained in:
LaurentGom 2010-01-06 14:19:37 +00:00
parent 5eaec85d87
commit cbee33e764
2 changed files with 2 additions and 1 deletions

View File

@ -162,6 +162,7 @@ void Input::ResetStates()
for (int j = 0; j < Joy::AxisCount; ++j) for (int j = 0; j < Joy::AxisCount; ++j)
myJoystickAxis[i][j] = 0.f; myJoystickAxis[i][j] = 0.f;
myJoystickAxis[i][Joy::AxisPOV] = -1.f;
} }
} }

View File

@ -94,7 +94,7 @@ void Joystick::Initialize(unsigned int Index)
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
JoystickState Joystick::UpdateState() JoystickState Joystick::UpdateState()
{ {
JoystickState State = {0}; JoystickState State;
if (myIsConnected) if (myIsConnected)
{ {