Is there a way to get the asynchronous state of a key using GLUT?
I'd like to get the asynchronous state of a key using GLUT, because, well, I want my code to be platform-independent. Up until now, I have been using callbacks like this:
But that creates impracticalities in a lot of cases; and I would like to check the state of a key, anytime. The other problem with this code is that my program cannot process 2 keys at the same time. I probably would use the Windows functions that everybody knows, except that I'm using a Mac ;). So anybody know of a way?