Skip to content

Commit

Permalink
CONTROLS.md
Browse files Browse the repository at this point in the history
  • Loading branch information
Lucodivo committed Feb 14, 2024
1 parent 95cc309 commit dec7820
Show file tree
Hide file tree
Showing 3 changed files with 36 additions and 2 deletions.
34 changes: 34 additions & 0 deletions CONTROLS.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
# Controls

## General
Esc - Exit
Tab - Toggle menu, mouse visiblity, and FPS info
Alt + Enter - Toggle fullscreen

## Where Applicable
Mouse - Rotate camera
WASD [+ Shift] - Move Camara [faster]

## Menger Prison
q / e - Increase/decrease resolution

## Mandelbrot
Mouse Click - Change color
Mouse Hold + Drag - Plan
Mouse Wheel - Zoom

## Infinite Capsules
Mouse Click - Shoot point light

## Select a Box
Mouse Click - Select a box (where cursor lies or center point when fullscreen)

## Reflection & Refraction
Up / Down - Cycle between reflections and refractions of varios IoR
Left / Right - Show normals and explode geometry along normals

## Imager Kernel
q / e - Cycle through kernels

## Multi Scene
j / k - Rotate left/right through scenes
2 changes: 1 addition & 1 deletion src/common/OpenGLUtil.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ void load2DTexture(const char* imgLocation, uint32& textureId, bool flipImageVer
if (height != NULL) *height = h;
} else
{
std::cout << "Failed to load texture" << std::endl;
std::cout << "Failed to load texture: " << imgLocation << std::endl;
}
stbi_image_free(data); // free texture image memory
}
Expand Down
2 changes: 1 addition & 1 deletion src/scenes/SceneManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ void runScenes(GLFWwindow* window) {
glfwSetWindowShouldClose(window, GL_TRUE);
}

if((isActive(KeyboardInput_Alt_Right) && hotPress(KeyboardInput_Enter)) || hotPress(Controller1Input_Select))
if(((isActive(KeyboardInput_Alt_Right) || isActive(KeyboardInput_Alt_Left)) && hotPress(KeyboardInput_Enter)) || hotPress(Controller1Input_Select))
{
toggleWindowSize(window, VIEWPORT_INIT_WIDTH, VIEWPORT_INIT_HEIGHT);
}
Expand Down

0 comments on commit dec7820

Please sign in to comment.