Move camera to Controller class

This commit is contained in:
4VRDriver
2020-09-04 07:28:51 +02:00
parent 8ffd95207e
commit 45847828b5
4 changed files with 28 additions and 24 deletions

View File

@@ -14,10 +14,8 @@ EventHandler::EventHandler(GLFWwindow *window)
void EventHandler::handleEvents() {
// Restore deltaCursorPos BEFORE polling events
//deltaCursorPosX = 0.0f; deltaCursorPosY = 0.0f;
glfwPollEvents();
for(int i=0; i<CAMERA_ACTION_NUM_ITEMS; i++) {
actionCameraRegister[i] = 0;
}