first off my code is messy, none modular and hard to read but I'm not making any useful program, I'm just learning how to use the GetAsyncKeyState from the windows API to get input from a user.
anyhow I have followed many online sources but for some reason the program fails to read from the keyboard,
strange when I include Windows.h with a capital 'w' everything works as expected, I wonder why windows.h with a lower case doesn't work, are they both valid headers? whats the diff?
There should be no difference unless you're doing something weird like cross-compiling for Windows from Linux. (Windows filesystem is case-insensitive, Linux isn't)
Can you change it back to lowercase and then re-compile and see if it starts to fail again?