Controls provided by glut are weak, because it can't check the state of modifying keys (alt, for example), so it only works combined with another keys. Research for a better control library.
I can't find any easy way. Nothing in Internet about how to solve it. All the alternatives are bad: Use a game engine, or try to manipulate X events. I will pause this task for a while.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I can't find any easy way. Nothing in Internet about how to solve it. All the alternatives are bad: Use a game engine, or try to manipulate X events. I will pause this task for a while.