Advertisement

[NEWBIE] Stop camera only if all keys are released?

Started by January 24, 2001 11:11 PM
1 comment, last by Pure Krome 23 years, 10 months ago
G''Day. In the 3D scene i''m making, when i press a key I move. I can then press another key at the same time to move 2 directions at once. When i release either one, i stop completly, becuase when any of the code keys are released, my camera stops. How can i make it so that only all the *moving keys* are released, then stop the camera? I''m using glut also. No windows specific code please. Thank you kindly. -PK-
-PK-
Go read over some of NeHe''s tutorials and observe the best way you could accomplish this..

-- Wav
Advertisement
Just use flags. When you check if a key is hit, set a flag, then do a if(flag)...blah blah..

simple.

This topic is closed to new replies.

Advertisement