diff options
Diffstat (limited to 'src/input.cpp')
| -rw-r--r-- | src/input.cpp | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/input.cpp b/src/input.cpp index 827581c..bad2ce8 100644 --- a/src/input.cpp +++ b/src/input.cpp @@ -1,8 +1,11 @@ #include "input.hpp" #include "GLFW/glfw3.h" -void processInput(GLFWwindow *window) +namespace Input { - if(glfwGetKey(window, GLFW_KEY_ESCAPE) == GLFW_PRESS) - glfwSetWindowShouldClose(window, true); + void process(GLFWwindow *window) + { + if(glfwGetKey(window, GLFW_KEY_ESCAPE) == GLFW_PRESS) + glfwSetWindowShouldClose(window, true); + } } |
