Update PlayerInputComponent.cpp

This commit is contained in:
onTheZero
2025-08-15 22:22:04 -04:00
parent cc4e06b088
commit 95059f6829

View File

@@ -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);
} }