opengl-tutorials / ogl

http://www.opengl-tutorial.org
2.69k stars 925 forks source link

Make controls more intuitive #128

Open n-l-i opened 1 year ago

n-l-i commented 1 year ago

This changes the controls to be more similar to what you would see in most video games, i.e. the up-vector always points in the same direction, here in the +Y direction, and vertical mouse movement is inverted. Arrow keys move the camera only in the xz-plane, not up and down, and this change also necessitates the introduction of dedicated up and down controls, here using the spacebar and shift keys correspondingly.

This also adds WASD-controls as an alternative to the arrow keys.

This also adds the fix to the camera issue on Linux that @billsix presented in pull request #100