movement with keyboard

Started by
1 comment, last by stroma 18 years, 10 months ago
I use GLUT for keyboard but that does not work well. I want a fluid movement. Somebody can help me?
Advertisement
turn off keyboard repeat (check glut help or header for the command)
and just store a flag if a key is pressed or not.
then to move left or someit check to see if that flag is set
there were a # for this, if(key == 'a' & # ) ..do movement...
i cannot remember the number(it is something like 0x80), but you can find if you check some tutorials.
+-+-+-+-+-STR

This topic is closed to new replies.

Advertisement