I am using the Win32 API. How would I be able to check if the shift key is being held down when processing use input? I know that value is MOD_SHIFT but I don't know if it's lParam or wParam of WindowProc that will hold this, of if it's any other value that will hold this.

Recommended Answers

All 3 Replies

check if the shift key is being held down when processing use input?

I believe GetKeyState() will do the work, see an example of it here Using Keyboard Input

Okay, well that works for characters like a, b, c. I need a method that also works for keys like the comma(') or a semi-colon(;)

Which WM_ message are you processing?

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.