summaryrefslogtreecommitdiffhomepage
path: root/src/input.cpp
diff options
context:
space:
mode:
authorrealtradam <[email protected]>2022-11-24 23:25:23 -0500
committerrealtradam <[email protected]>2022-11-24 23:25:23 -0500
commit6e1d0c6a3f3699e44000f411cd93261c460f75a9 (patch)
tree30ba89e71ef19a074cb2e6c9a8dbb8d08cccdab7 /src/input.cpp
parentf2a9e986afe980c6b32f7f40d1fe2b0294d86d90 (diff)
downloadOgle-6e1d0c6a3f3699e44000f411cd93261c460f75a9.tar.gz
Ogle-6e1d0c6a3f3699e44000f411cd93261c460f75a9.zip
cleaned up code
Diffstat (limited to 'src/input.cpp')
-rw-r--r--src/input.cpp9
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);
+ }
}