'Windows Keyboard Input - GLFW | Win32

I'm working on a Game Engine and It Currently Supports OpenGL and DirectX11. I've Abstracted my Code in Such a way that for OpenGL, a GLFW window Opens and for DirectX11, a Win32 window opens. Now I'm working on keyboard and Mouse Inputs but the virtual KeyCodes for GLFW and Win32 are both different. Is there a way to kinda make this work by maybe converting GLFW into win32 or vice versa? or maybe through some other way? (if yes then How?). Also I know I could Use Win32 for OpenGL but it would be nice if I could Use GLFW.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source