Page 1 of 1

Virtual keys can't detect RIGHT/LEFT Ctrl/Alt/Shift

Posted: November 13th, 2022, 11:33 pm
by feli_lecchini
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.

Re: Virtual keys can't detect RIGHT/LEFT Ctrl/Alt/Shift

Posted: November 29th, 2022, 8:52 am
by albinopapa
https://learn.microsoft.com/en-us/windo ... nckeystate

You'll have to call GetASyncKeyState() to determine which control, shift or alt button was pressed.

Re: Virtual keys can't detect RIGHT/LEFT Ctrl/Alt/Shift

Posted: December 2nd, 2022, 11:50 am
by feli_lecchini
I'm gonna try it...