summaryrefslogtreecommitdiff
path: root/src/keyboard_movement_controller.cpp
diff options
context:
space:
mode:
authortylermurphy534 <tylermurphy534@gmail.com>2022-09-19 21:28:41 -0400
committertylermurphy534 <tylermurphy534@gmail.com>2022-09-19 21:28:41 -0400
commit8cc0b081ef0188f850814b2af2cb077583eb9f2d (patch)
treef90ba2da50c91f596672730706440149fecb2393 /src/keyboard_movement_controller.cpp
parenttemp patch (diff)
downloadminecraftvulkan-8cc0b081ef0188f850814b2af2cb077583eb9f2d.tar.gz
minecraftvulkan-8cc0b081ef0188f850814b2af2cb077583eb9f2d.tar.bz2
minecraftvulkan-8cc0b081ef0188f850814b2af2cb077583eb9f2d.zip
finish refactor
Diffstat (limited to 'src/keyboard_movement_controller.cpp')
-rw-r--r--src/keyboard_movement_controller.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/keyboard_movement_controller.cpp b/src/keyboard_movement_controller.cpp
index 6782709..325693e 100644
--- a/src/keyboard_movement_controller.cpp
+++ b/src/keyboard_movement_controller.cpp
@@ -4,9 +4,9 @@
#include <glm/geometric.hpp>
#include <limits>
-namespace xe {
+namespace app {
-void KeyboardMovementController::moveInPlaneXZ(GLFWwindow* window, float dt, XeGameObject& gameObject) {
+void KeyboardMovementController::moveInPlaneXZ(GLFWwindow* window, float dt, xe::XeGameObject& gameObject) {
glm::vec3 rotate{0};
if(glfwGetKey(window, keys.lookRight) == GLFW_PRESS) rotate.y += 1.f;
if(glfwGetKey(window, keys.lookLeft) == GLFW_PRESS) rotate.y -= 1.f;