Keyboard funcs

how can i handle two keys being pressed at the same time?

for some reason, I think your question is more complex.

you can do something like:

// ...

if (pressed(first_key) && pressed(second_key) )
        // handle this event

// ...

Ok, as i know it, to handle keyboard events with opengl you do something like this…


void keyboard(unsigned char key, int w, int h)


doing it this way, i cant press and hold two keys at the same time, it will only be acting as if i only pressed one key(the last one i pressed and not both)