View Full Version : Random Input Problem [SOLVED]

09-16-2011, 10:07 PM
I'm having a strange problem, in my keyboard down function I have this:


In my keyboard up function I have this:

Then at the end of the timer func I call this:

for(int ii=0;ii<256;++ii)
For some reason when I check if a key is pressed it will reset its self, when it is supposed to return true if it is not already down, at the end of timer set to false, but this isn't working... I'm not sure what is wrong...

I figured it out, set glutSetKeyRepeat() to GLUT_KEY_REPEAT_OFF...

09-16-2011, 11:17 PM
Hard to help you with so few code.
Try the low level debugger, ie. printf each read and write operation on keyboardDown and keyboardPressed, reading the log should help you understand what happens.