This commit is contained in:
Benjamin Kyd
2019-03-03 21:07:53 +00:00
parent 8a860bcd7f
commit 6431e25243

View File

@@ -5,7 +5,7 @@
// #include <glm/glm.hpp> // #include <glm/glm.hpp>
// #include <glm/gtc/matrix_transform.hpp> // #include <glm/gtc/matrix_transform.hpp>
// #include <glm/gtc/type_ptr.hpp> // #include <glm/gtc/type_ptr.hpp>
// Custom includes // Custom includes
#define LOGGER_DEFINITION #define LOGGER_DEFINITION
#include <logger.h> #include <logger.h>
@@ -44,9 +44,9 @@ int main (int argc, char** argv) {
while (SDL_PollEvent(&e)) { while (SDL_PollEvent(&e)) {
if (e.type == SDL_QUIT) if (e.type == SDL_QUIT)
display.isClosed = true; display.isClosed = true;
if (e.key.keysym.sym == SDLK_t) { //if (e.key.keysym.sym == SDLK_t) {
SDL_SetRelativeMouseMode(SDL_GetRelativeMouseMode() == SDL_TRUE ? SDL_FALSE : SDL_TRUE); // SDL_SetRelativeMouseMode(SDL_GetRelativeMouseMode() == SDL_TRUE ? SDL_FALSE : SDL_TRUE);
} //}
camera.handleMouse(e); camera.handleMouse(e);
} }