Windows keyboard codes in WPARAM and LPARAM

I am using GLFW as the front end to my (Win/Mac/Linux) OpenGL application and so far it’s working very well.

The only piece I am struggling with is getting access to the raw key codes (via WPARAM/LPARAM on Windows for example) since that is what the API (CEF) I am using requires.

I have tried many different things without any success so I thought I’d ask here to see if it is at all possible - I understands that it may not be and if that is the case, I will have to find a different solution.

Thank you.

glfwGetWin32Window gives you access to HWND of window, which would allow to install custom window proc with SetWindowSubclass or similar. Then inside new window proc you can explicitly handle messages you’re interested in.

Oh interesting - that sounds like it’ll do the trick. Thank you.

That worked perfectly. Thank you for the helpful advice.