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:
parent
5eaec85d87
commit
cbee33e764
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -94,7 +94,7 @@ void Joystick::Initialize(unsigned int Index)
|
||||
////////////////////////////////////////////////////////////
|
||||
JoystickState Joystick::UpdateState()
|
||||
{
|
||||
JoystickState State = {0};
|
||||
JoystickState State;
|
||||
|
||||
if (myIsConnected)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user