summaryrefslogtreecommitdiffhomepage
path: root/src/input.cpp
diff options
context:
space:
mode:
authorrealtradam <[email protected]>2022-11-19 22:31:13 -0500
committerrealtradam <[email protected]>2022-11-19 22:31:13 -0500
commit0eef3373b58cf2de459578fc94606804d1e778a0 (patch)
tree0c53f9ce2b80823b223b07ae3dbdddb473c94354 /src/input.cpp
parent13432ece9e2a8c6d20158fd6886c6060c8a7bdc9 (diff)
downloadOgle-0eef3373b58cf2de459578fc94606804d1e778a0.tar.gz
Ogle-0eef3373b58cf2de459578fc94606804d1e778a0.zip
Hello Window complete
Diffstat (limited to 'src/input.cpp')
-rw-r--r--src/input.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/input.cpp b/src/input.cpp
new file mode 100644
index 0000000..ef5f410
--- /dev/null
+++ b/src/input.cpp
@@ -0,0 +1,8 @@
+#include "input.h"
+#include <GLFW/glfw3.h>
+
+void processInput(GLFWwindow *window)
+{
+ if(glfwGetKey(window, GLFW_KEY_ESCAPE) == GLFW_PRESS)
+ glfwSetWindowShouldClose(window, true);
+}