Changed key polling method from a callback to per-frame

This commit is contained in:
Bart van Blokland (on MECHANINJA)
2017-08-23 16:42:15 +02:00
parent 2ecd0b9910
commit b46e12dab8
3 changed files with 7 additions and 10 deletions

View File

@@ -13,9 +13,8 @@
void runProgram(GLFWwindow* window);
// GLFW callback mechanisms
void keyboardCallback(GLFWwindow* window, int key, int scancode,
int action, int mods);
// Function for handling keypresses
void handleKeyboardInput(GLFWwindow* window);
// Checks for whether an OpenGL error occurred. If one did,