engine

game engine on C
git clone git://git.evenfri.pw/engine.git
Log | Files | Refs | README

input.c (191B)


      1 #include "engine.h"
      2 
      3 void process_input(float dt) {
      4   if(glfwGetKey(Window, GLFW_KEY_ESCAPE) == GLFW_PRESS) {
      5     glfwSetWindowShouldClose(Window, true);
      6   }
      7   camera_process_keyboard(dt);
      8 }