pyrocks
02-14-2004, 12:37 PM
Hello, i'm using GLUT 3.7
with the KeyboardFunc call i call a function which recieves only 1 key, and two coordinates (x,y). how can i make my program deal with more than one key pressed at a time?
let's say i have a model rendered and i would like to move it both up and left (diagonaly). when i press up it goes up but as soon as i press the left button while the up is pressed - it moves only to the left...
hope you can help...
with the KeyboardFunc call i call a function which recieves only 1 key, and two coordinates (x,y). how can i make my program deal with more than one key pressed at a time?
let's say i have a model rendered and i would like to move it both up and left (diagonaly). when i press up it goes up but as soon as i press the left button while the up is pressed - it moves only to the left...
hope you can help...