Virtual keys can't detect RIGHT/LEFT Ctrl/Alt/Shift
-
- Posts: 15
- Joined: November 7th, 2022, 12:58 am
Virtual keys can't detect RIGHT/LEFT Ctrl/Alt/Shift
Like the title says, when I Implement VK_LCONTROL or VK_RCONTROL they don't work. Only VK_CONTROL works. The same goes for ALT and SHIFT keys.
-
- Posts: 4373
- Joined: February 28th, 2013, 3:23 am
- Location: Oklahoma, United States
Re: Virtual keys can't detect RIGHT/LEFT Ctrl/Alt/Shift
https://learn.microsoft.com/en-us/windo ... nckeystate
You'll have to call GetASyncKeyState() to determine which control, shift or alt button was pressed.
You'll have to call GetASyncKeyState() to determine which control, shift or alt button was pressed.
If you think paging some data from disk into RAM is slow, try paging it into a simian cerebrum over a pair of optical nerves. - gameprogrammingpatterns.com
-
- Posts: 15
- Joined: November 7th, 2022, 12:58 am
Re: Virtual keys can't detect RIGHT/LEFT Ctrl/Alt/Shift
I'm gonna try it...