08-16-2024, 07:43 AM
The problem here is GLUT itself. Try a few more various keys -- such as CTRL + any number key... Those won't report at all for you.
Glut is BROKEN when it comes to keyboard handling. We honestly and truly need to yank that BLEEPER out and replace it with *anything* else. The problem with that is... it controls so FLIPPING much of the crap we do. We'd basically end up with the same crappy issues that popped up when Galleon began to swap from SDL to GLUT -- half the commands didn't work and they all needed to be patched up and tweaked to start operating properly once again.
Slowly, I think we're moving away from GLUT dependency with all the new libraries and such to handle things. Hopefully, in the next 5 years (if the world doesn't end by then), we'll be able to fully gank GLUT out and replace it with something proper and all these type of issues will disappear for us.
Until then, all you can do is what I do -- Cuss GLUT!!
(And use my keyhit library as a replacement on Windows.)
Glut is BROKEN when it comes to keyboard handling. We honestly and truly need to yank that BLEEPER out and replace it with *anything* else. The problem with that is... it controls so FLIPPING much of the crap we do. We'd basically end up with the same crappy issues that popped up when Galleon began to swap from SDL to GLUT -- half the commands didn't work and they all needed to be patched up and tweaked to start operating properly once again.
Slowly, I think we're moving away from GLUT dependency with all the new libraries and such to handle things. Hopefully, in the next 5 years (if the world doesn't end by then), we'll be able to fully gank GLUT out and replace it with something proper and all these type of issues will disappear for us.
Until then, all you can do is what I do -- Cuss GLUT!!
(And use my keyhit library as a replacement on Windows.)