movement with keyboard
I use GLUT for keyboard but that does not work well. I want a fluid movement. Somebody can help me?
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
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.
i cannot remember the number(it is something like 0x80), but you can find if you check some tutorials.
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement