Update PlayerInputComponent.cpp
This commit is contained in:
@@ -24,22 +24,22 @@ void PlayerInputComponent::ProcessKeyboard(float DeltaTime)
|
|||||||
bFreeMouse = true;
|
bFreeMouse = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (glfwGetKey(Window, GLFW_KEY_E) == GLFW_PRESS)
|
if (glfwGetKey(Window, GLFW_KEY_W) == GLFW_PRESS)
|
||||||
{
|
{
|
||||||
PlayerCharacter.Move(FORWARD, DeltaTime);
|
PlayerCharacter.Move(FORWARD, DeltaTime);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (glfwGetKey(Window, GLFW_KEY_D) == GLFW_PRESS)
|
if (glfwGetKey(Window, GLFW_KEY_S) == GLFW_PRESS)
|
||||||
{
|
{
|
||||||
PlayerCharacter.Move(BACKWARD, DeltaTime);
|
PlayerCharacter.Move(BACKWARD, DeltaTime);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (glfwGetKey(Window, GLFW_KEY_S) == GLFW_PRESS)
|
if (glfwGetKey(Window, GLFW_KEY_A) == GLFW_PRESS)
|
||||||
{
|
{
|
||||||
PlayerCharacter.Move(LEFT, DeltaTime);
|
PlayerCharacter.Move(LEFT, DeltaTime);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (glfwGetKey(Window, GLFW_KEY_F) == GLFW_PRESS)
|
if (glfwGetKey(Window, GLFW_KEY_D) == GLFW_PRESS)
|
||||||
{
|
{
|
||||||
PlayerCharacter.Move(RIGHT, DeltaTime);
|
PlayerCharacter.Move(RIGHT, DeltaTime);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user