How can I check if the shift key is depressed? It isn’t registered by glutKeyboardFunc or glutSpecialFunc, and shift-arrow key is the same code as just arrow key.
You can use the win32 function
GetKeyState()
with parameter VK_LSHIFT VK_RSHIFT or just VK_SHIFT for any of both shift keys
it’s defined as:
SHORT GetKeyState(
int nVirtKey // virtual-key code
);
great, thanks
You know what “depressed” really means, don´t you?
I think it´s really nice of you, that you care for the feelings of your keyboard
Jan.