Hi, I was looking into win32_handmade.cpp to see how Casey handles keypresses. I used the code below, but for some reason this does not compile for me (using cl.exe x64 version 19.12 on windows 10).
| uint32 VKCode = (uint32)Message.wParam;
...
if(VKCode == 'W')
{
Win32ProcessKeyboardMessage(&KeyboardController->MoveUp, IsDown);
...
|
If I try to compile this I get the following error:
error C2446: '==': no conversion from 'const char *' to 'uint32_t'. Looking at the code above, I can completely understand why the compiler complains.
Am I missing something here? How come it works on Casey's machine?