Forgot std, that's why cos was been promoted to a double.
Added periodic keypress checking.
Don't move if we are not moving!
Added mouse movement. Hmm, view matrix is broken again (or always was).
Starting position is closer to the triangle.
Clamp view angles to 09 degrees and +-180 degrees.