Small help to code rationality

This commit is contained in:
MihailRis
2022-03-12 19:30:47 +03:00
committed by GitHub
parent b0a15a7c8c
commit b9fff9d1ac
+4 -3
View File
@@ -86,9 +86,6 @@ void update_controls(PhysicsSolver* physics,
Player* player,
float delta){
if (Events::jpressed(GLFW_KEY_ESCAPE)){
Window::setShouldClose(true);
}
if (Events::jpressed(GLFW_KEY_TAB)){
Events::toogleCursor();
}
@@ -306,6 +303,10 @@ int main() {
delta = currentTime - lastTime;
lastTime = currentTime;
if (Events::jpressed(GLFW_KEY_ESCAPE)){
Window::setShouldClose(true);
}
if (Events::jpressed(GLFW_KEY_O)){
occlusion = !occlusion;
}