detecting ctrl

If you wanted to detect a combination of keys pressed, like CTRL+Z what methods would you use to detect CTRL? The looking I've done says to use getKeyState()
while using key code constants to refer to certain keys. I've tried implementing the method myself but I get a slew of errors from my compiler - I was wondering if there was another way of doing this? If not, I could post my compiler errors and see if the problem can be worked through.

this is the page I've been referencing:

https://msdn.microsoft.com/en-us/library/windows/desktop/ms646301(v=vs.85).aspx
I would try something like nRet = GetKeyState ( VK_SHIFT ) ;

You can get more from here... https://msdn.microsoft.com/en-us/library/ms646301(VS.85).aspx


Topic archived. No new replies allowed.